Write yourself a context processor and register it in your
settings.TEMPLATE_CONTEXT_PROCESSORS. For example, registering
myapp.context_processors.template_defaults:

# myapp/context_processors.py
def template_defaults(request):
        return {
                "BASE_TEMPLATE": "base/base.html",
        }

...will expose BASE_TEMPLATE in all my templates.

Regards
Scott

> my Django project has several apps, and each app contains a constant
> named APPLABEL. This constant should be passed to all templates, but
> I'd like to avoid adding it to each rendering context manually. Is
> that possible?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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