From d4d97e0750eff53ed41d7f844965132b9c5ef489 Mon Sep 17 00:00:00 2001 From: Jarmil Date: Fri, 15 Nov 2019 20:16:57 +0100 Subject: [PATCH] FIX: vypnuti default debug modu, FIX: prepis static files pri startu aplikace --- docker-entrypoint.sh | 2 +- main/settings_global.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index a5ebf7b..762d7a9 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -8,7 +8,7 @@ cd /nalodeni python manage.py migrate -python manage.py collectstatic --noinput +python manage.py collectstatic --noinput --clear python manage.py loaddata nalodeni_interestregion nalodeni_topics nalodeni_skills nalodeni_counties diff --git a/main/settings_global.py b/main/settings_global.py index 5c1e9c9..e6c0eec 100644 --- a/main/settings_global.py +++ b/main/settings_global.py @@ -26,9 +26,9 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '-replace-this-in-install-settings-3243v432' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True -DEBUG_LOCAL= True -DEBUG_PROPAGATE_EXCEPTIONS = True +DEBUG = False +DEBUG_LOCAL= False +DEBUG_PROPAGATE_EXCEPTIONS = False LOG_INCOMING_REQUESTS = False ALLOWED_HOSTS = []