Skip to content

Commit

Permalink
ensure DEBUG is set as expected (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-webber authored Apr 2, 2024
1 parent 12c9862 commit abd45e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
SECRET_KEY = str(os.environ.get("SECRET_KEY"))

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = bool(os.environ.get("DEBUG", default=0))
DEBUG = os.environ.get("DEBUG", default=0)
if DEBUG in ["True", "true", "T", "1"] or DEBUG:
DEBUG = True
else:
DEBUG = False

ALLOWED_HOSTS = str(os.environ.get("DJANGO_ALLOWED_HOSTS")).split(" ")

Expand Down

0 comments on commit abd45e3

Please sign in to comment.