From 4bf933d8f5473804985f41d174699c4f407d5d61 Mon Sep 17 00:00:00 2001 From: ajurna Date: Fri, 15 Feb 2019 16:04:33 +0000 Subject: [PATCH] update for devops --- cbreader/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cbreader/settings.py b/cbreader/settings.py index d062d47..ea8548c 100644 --- a/cbreader/settings.py +++ b/cbreader/settings.py @@ -23,9 +23,9 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '=3tf-@u1t7x4%$yr++59+8tspl4ao&r3&!bb6l(t&$#6@bfkwg' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = os.environ.get('DJANGO_DEBUG', True) -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", "localhost").split(",") # Application definition