Allow multiple hosts

This commit is contained in:
Gabriel Augendre 2018-05-22 01:09:53 +02:00
parent 84801a7204
commit 708c332b0d

View file

@ -35,7 +35,7 @@ if DEBUG:
]) ])
host = os.getenv('HOST', None) host = os.getenv('HOST', None)
if host: if host:
ALLOWED_HOSTS.append(host) ALLOWED_HOSTS.extend(host.split(','))
ADMINS = [('Gabriel', os.getenv('ADMIN_EMAIL')), ] ADMINS = [('Gabriel', os.getenv('ADMIN_EMAIL')), ]
SERVER_EMAIL = os.getenv('SERVER_EMAIL') SERVER_EMAIL = os.getenv('SERVER_EMAIL')