from django.http import HttpResponse


def index(request):
    return HttpResponse("Hello, world. You're at the clinic index.")
# Create your views here.

@@ -9,146 +9,227 @@
 ngo.
-http import HttpResponse%0A%0A%0Adef index(request):%0A    return HttpResponse(%22Hello, world. You're at the clinic index.%22)%0A# Create your views here.
+shortcuts import render%0Afrom .models import Patient%0A%0Adef index(request):%0A    patients = Patient.objects.order_by('-last_name')%0A    context = %7B'patients': patients%7D%0A    return render(request, 'patients/index.html', context)
 %0A

Update views.py