Properly set DEBUG from env
This commit is contained in:
parent
8120a1d77e
commit
5d95439e23
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ import os
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = os.environ['DEBUG']
|
DEBUG = os.environ['DEBUG'] == 'True'
|
||||||
TEMPLATE_DEBUG = os.environ['DEBUG']
|
TEMPLATE_DEBUG = os.environ['DEBUG'] == 'True'
|
||||||
|
|
||||||
SECRET_KEY = os.environ['SECRET_KEY']
|
SECRET_KEY = os.environ['SECRET_KEY']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue