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

5
6
7
8
9
10
11
12
13

def home(request):
    pass

# from .models import Post

# def post_list(request):
#     posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
#     return render(request, 'rex/post_list.html', {'posts': posts})