From 030234e3277662e9a22c17829fe3e4faef38c824 Mon Sep 17 00:00:00 2001 From: Zolotarev Alexander Date: Fri, 10 Feb 2017 12:42:35 +0000 Subject: [PATCH] Update settings.py --- lms/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lms/settings.py b/lms/settings.py index b7c6a64..e6f1e81 100644 --- a/lms/settings.py +++ b/lms/settings.py @@ -13,7 +13,10 @@ SECRET_KEY = '!eiquy7_+2#vn3z%zfp51$m-=tmvtcv*cj*@x$!v(_9btq0w=$' COMMENT_SECRET = 'ntyy70()&^&%)_^%#++i[k,q4jnb' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +if os.environ.get('DB_NAME', 'codemy') == 'codemy': + DEBUG = False +else: + DEBUG = True TESTING = False TEST_EMAIL = 'bez.b.unix@gmail.com' TEACHER = 't@skillbox.ru'