add 'debug' in template vars context processor (#15770)

This commit is contained in:
Thomas NOËL 2017-04-05 15:08:15 +02:00
parent 3abb0b60ea
commit a11e930ecd
1 changed files with 4 additions and 1 deletions

View File

@ -18,4 +18,7 @@
from django.conf import settings
def template_vars(request):
return settings.TEMPLATE_VARS
context_extras = {}
context_extras['debug'] = settings.DEBUG
context_extras.update(settings.TEMPLATE_VARS)
return context_extras