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')