create context pages
This commit is contained in:
parent
3be7b7cd5e
commit
05413ad9f8
1 changed files with 2 additions and 2 deletions
|
@ -9,6 +9,6 @@ def index(request, slug=''):
|
|||
context = {}
|
||||
context['settings'] = settings
|
||||
context['events'] = Event.objects.all().order_by('position')
|
||||
context['postscript'] = Page.objects.get(slug='postscript')
|
||||
context['intro'] = Page.objects.get(slug='intro')
|
||||
context['postscript'], c = Page.objects.get_or_create(slug='postscript')
|
||||
context['intro'], c = Page.objects.get_or_create(slug='intro')
|
||||
return render(request, 'index.html', context)
|
||||
|
|
Loading…
Reference in a new issue