kopia lustrzana https://github.com/wagtail/bakerydemo
Split allowed hosts by comma
rodzic
b541446e25
commit
8fc1330056
|
@ -23,13 +23,10 @@ else:
|
|||
# Make sure Django can detect a secure connection properly on Heroku:
|
||||
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||
|
||||
# Redirect all requests to HTTPS
|
||||
SECURE_SSL_REDIRECT = os.getenv("DJANGO_SECURE_SSL_REDIRECT", "off") == "on"
|
||||
|
||||
# Accept all hostnames, since we don't know in advance which hostname will be used for any given Heroku instance.
|
||||
# IMPORTANT: Set this to a real hostname when using this in production!
|
||||
# See https://docs.djangoproject.com/en/3.2/ref/settings/#allowed-hosts
|
||||
ALLOWED_HOSTS = os.getenv("DJANGO_ALLOWED_HOSTS", "*").split(";")
|
||||
ALLOWED_HOSTS = os.getenv("DJANGO_ALLOWED_HOSTS", "*").split(",")
|
||||
|
||||
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue