From d3b057e14e410e4e750d5b0359c86cd2e09854e6 Mon Sep 17 00:00:00 2001 From: Tiberiu Chibici Date: Sun, 2 Dec 2018 16:10:10 +0200 Subject: [PATCH] Work on settings.py --- app/YtManager/settings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/YtManager/settings.py b/app/YtManager/settings.py index 4a59e6d..8aca83c 100644 --- a/app/YtManager/settings.py +++ b/app/YtManager/settings.py @@ -124,17 +124,15 @@ LOG_FORMAT = '%(asctime)s|%(process)d|%(thread)d|%(name)s|%(filename)s|%(lineno) # Build paths inside the project like this: os.path.join(BASE_DIR, ...) PROJECT_ROOT = up(up(os.path.dirname(__file__))) # Project root -BASE_DIR = os.path.join(PROJECT_ROOT, "app") # Base dir of the application +BASE_DIR = up(os.path.dirname(__file__)) # Base dir of the application CONFIG_DIR = os.path.join(PROJECT_ROOT, "config") DATA_DIR = os.path.join(PROJECT_ROOT, "data") STATIC_ROOT = os.path.join(PROJECT_ROOT, "static") -_DEFAULT_CONFIG_DIR = os.path.join(BASE_DIR, "default") _DEFAULT_CONFIG_FILE = os.path.join(CONFIG_DIR, 'config.ini') _DEFAULT_LOG_FILE = os.path.join(DATA_DIR, 'log.log') _DEFAULT_MEDIA_ROOT = os.path.join(DATA_DIR, 'media') -DEFAULTS_FILE = os.path.join(_DEFAULT_CONFIG_DIR, 'defaults.ini') CONFIG_FILE = os.getenv('YTSM_CONFIG_FILE', _DEFAULT_CONFIG_FILE) DATA_CONFIG_FILE = os.path.join(DATA_DIR, 'config.ini')