I would like to highlight the look of some toolbar in layout.html depending on whether DEBUG = True or not.
I know about this answer with django.core.context_processors.debug , but it forces me to use RequestContext instead of Request , which I don't really like, btw how can I use RequestContext for layout.html that extends base.html ?
And in general, is there any better way than the one mentioned or one who has a custom template tag ?
I'm on Django 1.7 now
python django django-templates django-settings
andi Sep 11 '14 at 9:11 2014-09-11 09:11
source share