On Mar 9, 9:58 am, Paul <[email protected]> wrote:
> Nearly all views of an application i'm working on have the same
> sidebars with dynamic contents. So i generate these in a custom global
> context processor so it is available to any view without having to
> specify the custom processor each time.

This is better solved with custom template tags and template
inheritance.

> It turns out that also in admin views the same processors are used
> (from TEMPLATE_CONTEXT_PROCESSORS) which is not desired. So i'm
> starting to doubt whether this was such a good idea or not....
>
> How could i solve this?

cf above.

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

Reply via email to