Friday, March 9, 2012

Re: Can i specify a different set of global context processors for admin?

On Mar 9, 9:58 am, Paul <pee...@gmail.com> 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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate