Browse Source

Pročištění ALLOWED_HOSTS

pull/36/head
Pavel "LEdoian" Turinsky 9 months ago
parent
commit
df657953ab
  1. 5
      mamweb/settings_prod.py
  2. 5
      mamweb/settings_test.py

5
mamweb/settings_prod.py

@ -27,8 +27,9 @@ DEBUG = False
TEMPLATE_DEBUG = False
ALLOWED_HOSTS = ['mam.mff.cuni.cz', 'www.mam.mff.cuni.cz', 'atrey.karlin.mff.cuni.cz',
'mamweb.bezva.org','gimli.ms.mff.cuni.cz']
ALLOWED_HOSTS = ['mam.mff.cuni.cz', # Hlavní a asi jediná funkční adresa
'mam.matfyz.cz', # Ne že by se tohle použilo, ale pro potenciální případ změny…
]
# Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases

5
mamweb/settings_test.py

@ -32,7 +32,10 @@ DEBUG = True
TEMPLATES[0]['OPTIONS']['debug'] = True
ALLOWED_HOSTS = ['*.mam.mff.cuni.cz', 'atrey.karlin.mff.cuni.cz', 'mam.mff.cuni.cz', 'mam-test.kam.mff.cuni.cz', 'gimli.ms.mff.cuni.cz', 'mam-test.ks.matfyz.cz']
ALLOWED_HOSTS = [
'mam-test.ks.matfyz.cz',
'*.mam.mff.cuni.cz', # Asi se nikdy nepoužije…
]
# Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases

Loading…
Cancel
Save