From 6b2916418aea5aa90bd999032dbb1cdb70d26cbd Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 13 Apr 2018 23:37:02 +0200 Subject: [PATCH] Add HOST env variable --- workout/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/workout/settings.py b/workout/settings.py index 3e75e88..d6d7503 100644 --- a/workout/settings.py +++ b/workout/settings.py @@ -32,6 +32,9 @@ if DEBUG: 'localhost', 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')), ] SERVER_EMAIL = os.getenv('SERVER_EMAIL')