WebDirectory.models import Entry def index(request): entry_list = Entry.objects.all() return render(request,\ 'WebDirectory/index.html',\ {'entry_list': entry_list}) Fetch all entries in the database Call the template index.html with the list of all entries as argument