Allow setting ALLOWED_HOSTS directly
This commit is contained in:
parent
6f6e57a0c7
commit
d16c8d83f0
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ env = environ.Env(
|
||||||
SEO_INDEX=(bool, False),
|
SEO_INDEX=(bool, False),
|
||||||
SENTRY_DSN=(str, ""),
|
SENTRY_DSN=(str, ""),
|
||||||
TEST=(bool, False),
|
TEST=(bool, False),
|
||||||
|
ALLOWED_HOSTS=(list, ["*"]),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Read local secrets
|
# Read local secrets
|
||||||
|
@ -24,7 +25,7 @@ TEST = env("TEST")
|
||||||
SECRET_KEY = env("SECRET_KEY")
|
SECRET_KEY = env("SECRET_KEY")
|
||||||
|
|
||||||
BASE_HOSTNAME = env("BASE_HOSTNAME")
|
BASE_HOSTNAME = env("BASE_HOSTNAME")
|
||||||
ALLOWED_HOSTS = ["*"] if DEBUG else [BASE_HOSTNAME]
|
ALLOWED_HOSTS = env("ALLOWED_HOSTS")
|
||||||
|
|
||||||
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue