Re: Just started Django - please help clarify web site configuration strategy

2011-03-29 Thread javatina
That's the discussion I was looking for. Many thanks to you and Bruno Desthuilliers - helps get bigger picture. On Mar 28, 6:37 pm, Jumpfroggy wrote: > > Basically, the question is - when a web > > application starts there is a number of things that needs to be > >

Re: Just started Django - please help clarify web site configuration strategy

2011-03-29 Thread javatina
On Mar 29, 5:06 am, bruno desthuilliers wrote: > > 2. custom template tags - I do not see how they can help here > > You were talking about menus built from the db. Using a custom tag to > build these menus gives you the flexibility to only call on the > relevant

Re: Just started Django - please help clarify web site configuration strategy

2011-03-29 Thread bruno desthuilliers
On 28 mar, 20:58, javatina wrote: > Thanks for responding. It's been very important - helps "gauge" > thinking, how far I am off :) > > 1. I haven't yet looked at middlewares - will do. > > 2. custom template tags - I do not see how they can help here You were talking about

Re: Just started Django - please help clarify web site configuration strategy

2011-03-29 Thread bruno desthuilliers
On 29 mar, 00:37, Jumpfroggy wrote: (snip) > There is no callback mechanism.  You can add code to any file > (models.py is a good place), and you can do some tricky python-fu to > make sure it only runs once per process, but that's a bit of a hack. Indeed - and more

Re: Just started Django - please help clarify web site configuration strategy

2011-03-28 Thread Jumpfroggy
> Basically, the question is - when a web > application starts there is a number of things that needs to be > available any time any request. Some of them are really static in > nature - for example, pagination parameters; If these are static values, a good place to put them is in the settings.py

Re: Just started Django - please help clarify web site configuration strategy

2011-03-28 Thread javatina
Thanks for responding. It's been very important - helps "gauge" thinking, how far I am off :) 1. I haven't yet looked at middlewares - will do. 2. custom template tags - I do not see how they can help here (BTW, just completed my first one to loop ranges) 3. Request contexts complexity - as I

Re: Just started Django - please help clarify web site configuration strategy

2011-03-28 Thread bruno desthuilliers
On 28 mar, 16:58, javatina wrote: > I could formulate my question differently - is there such thing as an > application context in Django? Basically, the question is - when a web > application starts there is a number of things that needs to be > available any time any

Just started Django - please help clarify web site configuration strategy

2011-03-28 Thread javatina
I could formulate my question differently - is there such thing as an application context in Django? Basically, the question is - when a web application starts there is a number of things that needs to be available any time any request. Some of them are really static in nature - for example,