views.py 255 Bytes
Newer Older
Florent Chehab's avatar
Florent Chehab committed
1
2
from django.shortcuts import render
from django.utils import timezone
Florent Chehab's avatar
Florent Chehab committed
3
from rex.models.university import University
Florent Chehab's avatar
Florent Chehab committed
4

5
6

def home(request):
Florent Chehab's avatar
Florent Chehab committed
7
8
    universities = University.objects.all()
    return render(request, 'rex/home.html', {'universities': universities})