move timeline to front

This commit is contained in:
j 2022-04-12 14:41:48 +01:00
commit bb13f872e1
4 changed files with 11 additions and 5 deletions

View file

@ -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 = {}