Hi Poromenos.

you can set up a context processor to do this.
check out
http://svn.zyons.python-hosting.com/trunk/zilbo/common/utils/ 
context_processors.py
for 2 simple ones and
http://svn.zyons.python-hosting.com/trunk/zilbo/settings.py.tmpl
(the very bottom)
on how to configure it

regards
Ian

On 28/06/2006, at 9:36 PM, Poromenos wrote:

>
> Is there a way for me to pass a variable in every template context
> without writing custom template tags? I just want to pass the app name
> because I'm not comfortable with hardcoding it, but template tags seem
> too much work for something as simple as this.
>
> Isn't there something like a globals section, which get passed in  
> every
> template, where I could declare my variable and just do  
> {{ company_name
> }} and have it returned?
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to