turn on debug
This commit is contained in:
Binary file not shown.
@@ -41,10 +41,13 @@ SECRET_KEY = os.environ.get(
|
|||||||
# also explicitly exclude CI:
|
# also explicitly exclude CI:
|
||||||
# https://devcenter.heroku.com/articles/heroku-ci#immutable-environment-variables
|
# https://devcenter.heroku.com/articles/heroku-ci#immutable-environment-variables
|
||||||
IS_HEROKU_APP = "DYNO" in os.environ and not "CI" in os.environ
|
IS_HEROKU_APP = "DYNO" in os.environ and not "CI" in os.environ
|
||||||
|
ISDEBUG = "DEBUG" in os.environ and not "CI" in os.environ
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
if not IS_HEROKU_APP:
|
if ISDEBUG:
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
else:
|
||||||
|
DEBUG = False
|
||||||
|
|
||||||
# On Heroku, it's safe to use a wildcard for `ALLOWED_HOSTS``, since the Heroku router performs
|
# On Heroku, it's safe to use a wildcard for `ALLOWED_HOSTS``, since the Heroku router performs
|
||||||
# validation of the Host header in the incoming HTTP request. On other platforms you may need
|
# validation of the Host header in the incoming HTTP request. On other platforms you may need
|
||||||
|
|||||||
Reference in New Issue
Block a user