Kaynağa Gözat

fix allowed hosts

master
erichhasl 8 yıl önce
ebeveyn
işleme
17ccfcd30b
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. +5
    -1
      web_dev/sas_web/sas_web/settings.py

+ 5
- 1
web_dev/sas_web/sas_web/settings.py Dosyayı Görüntüle

@@ -26,7 +26,11 @@ SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY',
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = os.environ.get('DJANGO_ALLOWED_HOST', '').split(",")
allowed = os.environ.get('DJANGO_ALLOWED_HOST', None)
if allowed is not None:
ALLOWED_HOSTS = allowed.split(",")
else:
ALLOWED_HOSTS = []

# Define media paths e.g. for image storage
MEDIA_URL = '/media/'


Yükleniyor…
İptal
Kaydet