Source

christchurch_django / sermons / views.py

Full commit
1
2
3
4
5
6
7
8
from django.conf import settings
from django.shortcuts import render

from sermons.models import Sermon

def index(request):
    sermons = Sermon.objects.filter(published=True)
    return render(request, "sermons/index.html", {'sermons': sermons})