Merge pull request #20 from Faraphel/allowed_hosts

Fix env variable ALLOWED_HOSTS
This commit is contained in:
Faraphel 2024-01-28 16:09:50 +01:00 committed by GitHub
commit bd708f45b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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