On 5/6/2009 1:37 PM, ringemup wrote:
> I've got some context that every view in one of my apps needs to pass
> to its templates... but that I don't want to have to run for pages
> that don't use that app, since it executes a lot of queries.  Is there
> a way to execute the context processor only for views defined in that
> app's URL conf or something?

You can specify extra context processors to use with RequestContext in 
your view:

<http://docs.djangoproject.com/en/dev/ref/templates/api/#id1>

-- 
George

--~--~---------~--~----~------------~-------~--~----~
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