Re: Reusing a code snippet

2011-04-12 Thread Sithembewena Lloyd Dube
Thanks Daniel :) On Tue, Apr 12, 2011 at 12:20 PM, Daniel Roseman wrote: > On Tuesday, April 12, 2011 11:17:15 AM UTC+1, Lloyd Dube wrote: >> >> Hi Daniel, >> >> Thanks. I would think that plugging about in the default django >> installation would not be good practice - can that file simply resid

Re: Reusing a code snippet

2011-04-12 Thread Daniel Roseman
On Tuesday, April 12, 2011 11:17:15 AM UTC+1, Lloyd Dube wrote: > > 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 be

Re: Reusing a code snippet

2011-04-12 Thread Sithembewena Lloyd Dube
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

Re: Reusing a code snippet

2011-04-12 Thread Daniel Roseman
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 t

Reusing a code snippet

2011-04-12 Thread Sithembewena Lloyd Dube
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://djangosnippet