Hi Daniel,

Thanks. I would think that plugging about in the default django installation
would not be good practice - can that file simply reside in the project
directory and the name
in settings.py MIDDLEWARE_CLASSES becomes 'myproj.filename', ?

My colleague has so far added the middleware to the django-pagination
middleware and it works just fine.

Thank you!


On Tue, Apr 12, 2011 at 12:01 PM, Daniel Roseman <[email protected]>wrote:

>
> 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.
>



-- 
Regards,
Sithembewena Lloyd Dube

-- 
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.

Reply via email to