Add HOST env variable

This commit is contained in:
Gabriel Augendre 2018-04-13 23:37:02 +02:00
parent 559bf54fbe
commit 6b2916418a

View file

@ -32,6 +32,9 @@ if DEBUG:
'localhost', 'localhost',
os.getenv('CURRENT_IP', '192.168.1.27') os.getenv('CURRENT_IP', '192.168.1.27')
]) ])
host = os.getenv('HOST', None)
if host:
ALLOWED_HOSTS.append(host)
ADMINS = [('Gabriel', os.getenv('ADMIN_EMAIL')), ] ADMINS = [('Gabriel', os.getenv('ADMIN_EMAIL')), ]
SERVER_EMAIL = os.getenv('SERVER_EMAIL') SERVER_EMAIL = os.getenv('SERVER_EMAIL')