From e8f12e18d2ad6229340c18c97890b14fe0001343 Mon Sep 17 00:00:00 2001 From: PCoder Date: Fri, 22 Feb 2019 06:06:36 +0100 Subject: [PATCH] Obtain ALLOWED_HOSTS from config --- dal/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dal/settings.py b/dal/settings.py index 81872b2..867c8db 100644 --- a/dal/settings.py +++ b/dal/settings.py @@ -31,7 +31,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DEBUG = config('DEBUG', default=False, cast=bool) -ALLOWED_HOSTS = (os.environ.get('ALLOWED_HOSTS', 'localhost')).split(",") +ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv()) INSTALLED_APPS = [ 'django.contrib.admin',