Add: debug context processor
This commit is contained in:
parent
2d507792c3
commit
11cc94d59c
2 changed files with 5 additions and 0 deletions
4
archivist/apps/context_processors.py
Normal file
4
archivist/apps/context_processors.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
from django.conf import settings
|
||||
|
||||
def debug(context):
|
||||
return {'DEBUG': settings.DEBUG}
|
|
@ -94,6 +94,7 @@ TEMPLATES = [
|
|||
'django.template.context_processors.request',
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
'apps.context_processors.debug',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue