Pročištění ALLOWED_HOSTS
This commit is contained in:
parent
527c06d91e
commit
df657953ab
2 changed files with 7 additions and 3 deletions
|
@ -27,8 +27,9 @@ DEBUG = False
|
||||||
|
|
||||||
TEMPLATE_DEBUG = False
|
TEMPLATE_DEBUG = False
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['mam.mff.cuni.cz', 'www.mam.mff.cuni.cz', 'atrey.karlin.mff.cuni.cz',
|
ALLOWED_HOSTS = ['mam.mff.cuni.cz', # Hlavní a asi jediná funkční adresa
|
||||||
'mamweb.bezva.org','gimli.ms.mff.cuni.cz']
|
'mam.matfyz.cz', # Ne že by se tohle použilo, ale pro potenciální případ změny…
|
||||||
|
]
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
||||||
|
|
|
@ -32,7 +32,10 @@ DEBUG = True
|
||||||
|
|
||||||
TEMPLATES[0]['OPTIONS']['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
|
# Database
|
||||||
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
||||||
|
|
Loading…
Reference in a new issue