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')