Re: learning django's HttpRequest Object and Middleware

2007-07-31 Thread Joseph Heck
The middleware is loaded by whatever is serving your requests, and when it loads it'll process through that file - invoking "foofunc()" in the path and executing it. I'm not sure I understand your second question though. -joe On 7/31/07, james_027 <[EMAIL PROTECTED]> wrote: > > Hi Thomas > > >

Re: learning django's HttpRequest Object and Middleware

2007-07-31 Thread james_027
Hi Thomas > The methods of each middleware are called one for every request. If your > changes need information from the request, that's the right place. > > If you want to add a method which should be added once the server (mod_python, > scgi, ...) starts you can use this place too. But it is be

Re: learning django's HttpRequest Object and Middleware

2007-07-31 Thread Thomas Guettler
Am Dienstag, 31. Juli 2007 11:26 schrieb james_027: > Hi, > > I want to make sure that my understanding is right. is middleware the > place where I can add more attribute to the HttpRequest Object and > manipulate the added attribte? > > Is this advisable? if Not where is the right place to do it?

learning django's HttpRequest Object and Middleware

2007-07-31 Thread james_027
Hi, I want to make sure that my understanding is right. is middleware the place where I can add more attribute to the HttpRequest Object and manipulate the added attribte? Is this advisable? if Not where is the right place to do it? Thanks james --~--~-~--~~~---~--