Fix env variable ALLOWED_HOSTS

This commit is contained in:
biloute02 2024-01-28 16:06:50 +01:00
parent 5fec4cb691
commit 5717617de9

View file

@ -32,7 +32,7 @@ if not SECRET_KEY:
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv("DEBUG", "false").lower() in ["1", "true"] 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"] INTERNAL_IPS = ["localhost"]
# Application definition # Application definition