diff --git a/dingxin_toolbox_drf/settings.py b/dingxin_toolbox_drf/settings.py index 5677c80..196a454 100644 --- a/dingxin_toolbox_drf/settings.py +++ b/dingxin_toolbox_drf/settings.py @@ -190,7 +190,7 @@ LOGGING = { 'file': { 'level': 'INFO', 'class': 'logging.handlers.RotatingFileHandler', - 'filename': os.path.join(BASE_DIR, "logs/dingxin.log"), + 'filename': os.path.join(BASE_DIR, "logs", "dingxin.log"), 'maxBytes': 300 * 1024 * 1024, 'backupCount': 10, 'formatter': 'verbose' diff --git a/update/utils/git_util.py b/update/utils/git_util.py index 63976ee..25002bc 100644 --- a/update/utils/git_util.py +++ b/update/utils/git_util.py @@ -20,8 +20,8 @@ from dingxin_toolbox_drf import settings class GitUtil: def __init__(self, short_release): self.short_release = short_release - self.local_code_path = os.path.join(settings.BASE_DIR, r'dx\code') - self.cine_sql_path = os.path.join(settings.BASE_DIR, r'dx\sql') + self.local_code_path = os.path.join(settings.BASE_DIR, 'dx', 'code') + self.cine_sql_path = os.path.join(settings.BASE_DIR, 'dx', 'sql') self.db_name = self.get_db_name(self.short_release) self.db_config = { 'host': '172.16.3.112', @@ -142,7 +142,7 @@ class GitUtil: class GitDbUtil: def __init__(self): - self.local_code_path = os.path.join(settings.BASE_DIR, r'dx\code') + self.local_code_path = os.path.join(settings.BASE_DIR, 'dx', 'code') # 获取可用的版本,可用状态需要手动维护数据库 @staticmethod