django 1.11: update ALLOWED_HOSTS in test settings (#21489)

This commit is contained in:
Emmanuel Cazenave 2018-07-20 11:45:14 +02:00 committed by Frédéric Péters
parent 836695facc
commit 89b7740e04
2 changed files with 4 additions and 0 deletions

View File

@ -18,5 +18,7 @@ INSTALLED_APPS = (
import os
ALLOWED_HOSTS = []
if 'AUTHENTIC2_SETTINGS_FILE' in os.environ:
execfile(os.environ['AUTHENTIC2_SETTINGS_FILE'])

View File

@ -17,3 +17,5 @@ DATABASES = {
},
}
}
ALLOWED_HOSTS = ALLOWED_HOSTS + ['example.net', 'cache1.example.com', 'cache2.example.com']