turn on debug

This commit is contained in:
Senad Uka
2023-07-05 19:29:00 +02:00
parent 7220a90873
commit 9bb8af4b9c
2 changed files with 4 additions and 1 deletions

View File

@@ -41,10 +41,13 @@ SECRET_KEY = os.environ.get(
# also explicitly exclude CI:
# https://devcenter.heroku.com/articles/heroku-ci#immutable-environment-variables
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!
if not IS_HEROKU_APP:
if ISDEBUG:
DEBUG = True
else:
DEBUG = False
# 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