diff --git a/CTOAsYouGo/CTOAsYouGo/__pycache__/settings.cpython-310.pyc b/CTOAsYouGo/CTOAsYouGo/__pycache__/settings.cpython-310.pyc index 5ee0652..380088d 100644 Binary files a/CTOAsYouGo/CTOAsYouGo/__pycache__/settings.cpython-310.pyc and b/CTOAsYouGo/CTOAsYouGo/__pycache__/settings.cpython-310.pyc differ diff --git a/CTOAsYouGo/CTOAsYouGo/settings.py b/CTOAsYouGo/CTOAsYouGo/settings.py index 7bd20ac..ac9cbcc 100644 --- a/CTOAsYouGo/CTOAsYouGo/settings.py +++ b/CTOAsYouGo/CTOAsYouGo/settings.py @@ -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