Compare commits
2 commits
dc7df4b28a
...
11cc94d59c
Author | SHA1 | Date | |
---|---|---|---|
11cc94d59c | |||
2d507792c3 |
2 changed files with 6 additions and 1 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}
|
|
@ -14,7 +14,7 @@ import os, environ
|
|||
|
||||
env = environ.Env(
|
||||
# set casting, default value
|
||||
DEBUG=(bool, True)
|
||||
DEBUG=(bool, False)
|
||||
)
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
|
@ -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