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