From c87f4eed370dbc3b5fc2345e5a25eac2c99ca241 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 21 Mar 2021 15:50:16 +0100 Subject: [PATCH] Fix debug --- blog/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blog/settings.py b/blog/settings.py index 15f1cf0..0174c12 100644 --- a/blog/settings.py +++ b/blog/settings.py @@ -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"])