Can now configure allowed host in all settings

This commit is contained in:
Eliot Berriot 2018-02-18 14:28:44 +01:00
parent c0724d3cb4
commit 2f8a026afa
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 6 additions and 1 deletions

View file

@ -23,6 +23,10 @@ try:
env.read_env(ROOT_DIR.file('.env'))
except FileNotFoundError:
pass
ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS')
# APP CONFIGURATION
# ------------------------------------------------------------------------------
DJANGO_APPS = (