On Tuesday, April 12, 2011 10:44:27 AM UTC+1, Lloyd Dube wrote: > > Hi all, > > I found a code snippet to fix a dumplicvated first page of paginated > results and was wondering if anybody knows where in the code it should be > implemented? > > It looks like something that should be in views.py to me, but I'd like > others' input > > The code snippet is here: > > http://djangosnippets.org/snippets/1708/ > > Thanks. > > -- > Regards, > Sithembewena Lloyd Dube >
That's a middleware. It definitely doesn't go in views.py. Put it in its own file, and add the name to the MIDDLEWARE_CLASSES tuple in settings.py. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

