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 out of a QueryDict, but I expect that {{ request.META.TIER }} would
work.
Regards,
Luke
On February 4, 2010, at 11:25 , 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.meta["TIER"] %} or
> {% request.environ[TIER] %} but they do not return anything.
>
> Any help will be greatly appreciated.
>
> Thanks,
> Sincerely,
> Sonal.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.