From 8149d5723fa33d091d75e0974a92ab069cc1f8ea Mon Sep 17 00:00:00 2001 From: koksnuss Date: Fri, 19 Jun 2020 13:38:12 +0200 Subject: [PATCH] add proper settings --- coinmanager/coinmanager/production_settings.py | 5 ++++- coinmanager/coinmanager/settings.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/coinmanager/coinmanager/production_settings.py b/coinmanager/coinmanager/production_settings.py index be46589..33acd4f 100644 --- a/coinmanager/coinmanager/production_settings.py +++ b/coinmanager/coinmanager/production_settings.py @@ -23,7 +23,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'w-^#jkm1ub6=)(xiy%6od%+j6pwr51o0sk9o(-mb$8b77#h$53' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = ['willipink.eu'] @@ -123,3 +123,6 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static/') SECURE_SSL_REDIRECT = True SESSION_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True + +# Maintenance Mode +MAINTENANCE_MODE_READ_ONLY = True diff --git a/coinmanager/coinmanager/settings.py b/coinmanager/coinmanager/settings.py index 878b25e..4162108 100644 --- a/coinmanager/coinmanager/settings.py +++ b/coinmanager/coinmanager/settings.py @@ -121,4 +121,4 @@ USE_TZ = True STATIC_URL = '/static/' # Maintenance Mode -MAINTENANCE_MODE_READ_ONLY = True +MAINTENANCE_MODE_READ_ONLY = False