From daee479e9d7676013d5634036689e6c3779a3eab Mon Sep 17 00:00:00 2001 From: Max Yakovenko Date: Fri, 13 Jul 2018 17:22:06 +0300 Subject: [PATCH] update path for log files in production settings --- eshop_project/settings/production.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eshop_project/settings/production.py b/eshop_project/settings/production.py index d8bcde5..51e8a6b 100644 --- a/eshop_project/settings/production.py +++ b/eshop_project/settings/production.py @@ -24,5 +24,5 @@ EMAIL_HOST_USER = EMAIL_CONFIG.get('EMAIL_HOST_USER') EMAIL_HOST_PASSWORD = EMAIL_CONFIG.get('EMAIL_HOST_PASSWORD') # Logging -LOGGING['handlers']['production_file'] = '../logs/eshop_main_prod.log' -LOGGING['handlers']['debug_file'] = '../logs/eshop_main_prod.log' +LOGGING['handlers']['production_file'] = os.path.join(os.path.dirname(BASE_DIR),'logs/eshop_main_prod.log') +LOGGING['handlers']['debug_file'] = os.path.join(os.path.dirname(BASE_DIR),'logs/eshop_main_prod.log')