site-musique/timeline/views.py

11 lines
277 B
Python
Raw Normal View History

2019-09-01 12:13:50 +02:00
from django.shortcuts import render
from .models import Timeline
def index(request):
liste_evenements = Timeline.objects.order_by('-date')
context = {
'liste_evenements': liste_evenements,
}
return render(request, 'timeline/evenements.html', context)