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
> >
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
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
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
> 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
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
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
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,
8 matches
Mail list logo