Add Request Parameters

2009-10-18 Thread Keith
I'm writing some code that does something like... 1. check url for specific information 2. do some logic based on named group 3. pass results along on request It is easy for me to do this through urls.py for a single request. However, i want to perform this for every request. I am going down th

Re: Add Request Parameters

2009-10-19 Thread Daniel Roseman
On Oct 19, 5:20 am, Keith wrote: > I'm writing some code that does something like... > > 1. check url for specific information > 2. do some logic based on named group > 3. pass results along on request > > It is easy for me to do this through urls.py for a single request. > However, i want to per

Re: Add Request Parameters

2009-10-19 Thread Shawn Milochik
Keith, Depending on what you're doing, it might be a good place to use a context processor. http://docs.djangoproject.com/en/dev/ref/templates/api/#writing-your-own-context-processors Also, if you're using (or can use) the session middleware, you can store these values in the session. Shaw