site-musique/timeline/views.py
2019-09-01 16:02:36 +02:00

11 lines
277 B
Python

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)