Re: Access apache environment variable in template

2010-02-04 Thread Sonal Breed
Ya, It did work luke, What was I thinking, accessing it like {{ request.meta["TIER"] }} Sorry for that and thanks again for your help. Sonal On Feb 4, 9:30 am, Sonal Breed wrote: > I mean to say {{ request.meta["TIER"] }} > > On Feb 4, 9:25 am, Sonal Breed wrote: > > > Hi all, > > In my default

Re: Access apache environment variable in template

2010-02-04 Thread Luke Sneeringer
If you are using render_to_response, you will need to explicitly send request in the dictionary of items going to the template. Also, variable access in Django templates is done with the {{ and }} enclosure, and uses all dots (.) for separators. I have never tried to directly access something o

Re: Access apache environment variable in template

2010-02-04 Thread Sonal Breed
I mean to say {{ request.meta["TIER"] }} On Feb 4, 9:25 am, Sonal Breed wrote: > Hi all, > In my default-server.conf, I set an env variable as > setenv TIER hi > > Can anybody let me know how can I access this variable in the > template. > I tried to use a bunch of expressions like >  {% request.

Access apache environment variable in template

2010-02-04 Thread Sonal Breed
Hi all, In my default-server.conf, I set an env variable as setenv TIER hi Can anybody let me know how can I access this variable in the template. I tried to use a bunch of expressions like {% request.meta["TIER"] %} or {% request.environ[TIER] %} but they do not return anything. Any help will b