Add HOST env variable
This commit is contained in:
parent
559bf54fbe
commit
6b2916418a
1 changed files with 3 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue