title: how to check DEBUG true/false in django template - exactly in layout.html
body: <p>I would like distinguish a look of some toolbar in <code>layout.html</code> depending if DEBUG = True or not.</p>
  
  <p>I am aware of this <a href="https://stackoverflow.com/questions/1271631/how-to-check-the-template-debug-flag-in-a-django-template?answertab=active#tab-top">answer</a> using <code>django.core.context_processors.debug</code> but it forces me to use <code>RequestContext</code> instead of <code>Request</code> what I not really like, btw how can I use RequestContext for <code>layout.html</code> which extends <code>base.html</code>?</p>
  
  <p>And generally is there some better way to that than mentioned one or <a href="https://stackoverflow.com/questions/1271631/how-to-check-the-template-debug-flag-in-a-django-template/13609888#13609888">the one using custom template tag</a>?</p>
  
  <p>I am currently on Django 1.7</p>