Fix Allowed hosts

This commit is contained in:
Lorenz Padberg 2023-05-24 16:18:58 +02:00 committed by Daniel Egger
parent 04245f8512
commit 9f94191c7a
2 changed files with 1 additions and 7 deletions

Binary file not shown.

View File

@ -521,14 +521,8 @@ else:
SECRET_KEY = env("IT_DJANGO_SECRET_KEY") SECRET_KEY = env("IT_DJANGO_SECRET_KEY")
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ['*']
print("*"*100)
print(ALLOWED_HOSTS)
print("*"*100)
env.list( ALLOWED_HOSTS = env.list("IT_DJANGO_ALLOWED_HOSTS", default=["localhost", "0.0.0.0", "127.0.0.1"])
"IT_DJANGO_ALLOWED_HOSTS", default=["localhost", "0.0.0.0", "127.0.0.1"]
)
# CACHES # CACHES
CACHES = { CACHES = {