Mercurial > public > sg101
comparison gpp/weblinks/views.py @ 259:75ea1a8be7f2
Fix some old import problems where I used 'from django.contrib import auth' instead of 'from django.contrib.auth.models import User'. Also some formatting changes while I was in there.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 21 Sep 2010 23:49:05 +0000 |
parents | 7e8d2dda99e3 |
children |
comparison
equal
deleted
inserted
replaced
258:f9a9b4014d5b | 259:75ea1a8be7f2 |
---|---|
4 | 4 |
5 import datetime | 5 import datetime |
6 import random | 6 import random |
7 from django.shortcuts import render_to_response | 7 from django.shortcuts import render_to_response |
8 from django.template import RequestContext | 8 from django.template import RequestContext |
9 from django.contrib import auth | |
10 from django.core.paginator import InvalidPage | 9 from django.core.paginator import InvalidPage |
11 from django.http import HttpResponse | 10 from django.http import HttpResponse |
12 from django.http import HttpResponseBadRequest | 11 from django.http import HttpResponseBadRequest |
13 from django.http import HttpResponseRedirect | 12 from django.http import HttpResponseRedirect |
14 from django.contrib.auth.decorators import login_required | 13 from django.contrib.auth.decorators import login_required |