From 5717617de9cf92596f9dde619cd982713ec164c8 Mon Sep 17 00:00:00 2001 From: biloute02 Date: Sun, 28 Jan 2024 16:06:50 +0100 Subject: [PATCH] Fix env variable ALLOWED_HOSTS --- Palto/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Palto/settings.py b/Palto/settings.py index 21cb743..13d656b 100644 --- a/Palto/settings.py +++ b/Palto/settings.py @@ -32,7 +32,7 @@ if not SECRET_KEY: # SECURITY WARNING: don't run with debug turned on in production! DEBUG = os.getenv("DEBUG", "false").lower() in ["1", "true"] -ALLOWED_HOSTS = os.getenv("", "localhost 0.0.0.0").split(" ") +ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "localhost 0.0.0.0").split(" ") INTERNAL_IPS = ["localhost"] # Application definition