Compare commits

...

2 commits

Author SHA1 Message Date
11cc94d59c
Add: debug context processor 2024-05-14 21:05:05 +02:00
2d507792c3
Set: DEBUG default to False 2024-05-14 21:01:39 +02:00
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,4 @@
from django.conf import settings
def debug(context):
return {'DEBUG': settings.DEBUG}

View file

@ -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',
],
},
},