From 708c332b0d4a402c4208092487741c570e36d353 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 22 May 2018 01:09:53 +0200 Subject: [PATCH] Allow multiple hosts --- manuels_collection/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuels_collection/settings.py b/manuels_collection/settings.py index 7d564e9..a927ec7 100644 --- a/manuels_collection/settings.py +++ b/manuels_collection/settings.py @@ -35,7 +35,7 @@ if DEBUG: ]) host = os.getenv('HOST', None) if host: - ALLOWED_HOSTS.append(host) + ALLOWED_HOSTS.extend(host.split(',')) ADMINS = [('Gabriel', os.getenv('ADMIN_EMAIL')), ] SERVER_EMAIL = os.getenv('SERVER_EMAIL')