Fix debug

This commit is contained in:
Gabriel Augendre 2021-03-21 15:50:16 +01:00
parent 4cbdb0bc54
commit c87f4eed37

View file

@ -42,8 +42,7 @@ EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend"
# SECURITY WARNING: don't run with debug turned on in production!
# DEBUG = os.getenv("DEBUG", "true").lower() == "true"
DEBUG = False
DEBUG = os.getenv("DEBUG", "true").lower() == "true"
ALLOWED_HOSTS = ["localhost"] # Required for healthcheck
if DEBUG:
ALLOWED_HOSTS.extend(["127.0.0.1"])