From 3afdd108b5a3e3cb3fe1cdaabeaf72558033a691 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 21 Aug 2020 13:50:17 +0200 Subject: [PATCH] Fix healthcheck --- blog/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/settings.py b/blog/settings.py index e5f71c0..ba6da5b 100644 --- a/blog/settings.py +++ b/blog/settings.py @@ -45,9 +45,9 @@ EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend" DEBUG = os.getenv("DEBUG", "true").lower() == "true" TESTING = os.getenv("TESTING", "false").lower() == "true" -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ["localhost"] # Required for healthcheck if DEBUG: - ALLOWED_HOSTS.extend(["localhost", "127.0.0.1"]) + ALLOWED_HOSTS.extend(["127.0.0.1"]) HOSTS = os.getenv("HOSTS") if HOSTS: