move timeline to front
This commit is contained in:
parent
b65e2d940f
commit
bb13f872e1
4 changed files with 11 additions and 5 deletions
|
|
@ -7,13 +7,14 @@ from .models import Event
|
|||
from ..page.models import Page
|
||||
|
||||
|
||||
def index(request, slug=''):
|
||||
def events(request, slug=''):
|
||||
context = {}
|
||||
context['settings'] = settings
|
||||
context['events'] = Event.objects.all().order_by('position')
|
||||
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)
|
||||
return render(request, 'events.html', context)
|
||||
|
||||
|
||||
def timeline(request):
|
||||
context = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue