comparison gpp/news/views.py @ 92:62eb9cbbcffc

Need an import for the InvalidPage exception from django.core.paginator.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Sep 2009 04:09:08 +0000
parents b3b11edf91d8
children 2baadae33f2e
comparison
equal deleted inserted replaced
91:62af8cd8f57b 92:62eb9cbbcffc
8 from django.template.loader import render_to_string 8 from django.template.loader import render_to_string
9 from django.contrib import auth 9 from django.contrib import auth
10 from django.http import HttpResponseRedirect 10 from django.http import HttpResponseRedirect
11 from django.contrib.auth.decorators import login_required 11 from django.contrib.auth.decorators import login_required
12 from django.shortcuts import get_object_or_404 12 from django.shortcuts import get_object_or_404
13 from django.core.paginator import InvalidPage
13 from django.core.urlresolvers import reverse 14 from django.core.urlresolvers import reverse
14 from django.db.models import Q 15 from django.db.models import Q
15 from django.contrib.sites.models import Site 16 from django.contrib.sites.models import Site
16 from django.http import Http404 17 from django.http import Http404
17 18