> Django doesn't have "generic templates" (only generic views), and if  
> you don't provide the request to the template engine, it'll have a  
> pretty hard time getting the session without using magic.
>
> Magic is bad.
>
> If you want the session in your template context, either use generic  
> views, use RequestContext (with the Request context_processor enabled)  
> in your views or create your own context.

My apologies for saying generic templates rather than generic views.
Nevertheless, what I'm after is a template tag that's aware of the
request that I can put in any template, whether the template uses a
generic view or not. I really don't want to go through all my views
adding requestContext for this small thing. I just want a template tag
that's aware of the request.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to