From 86e92941df0406e55fed12d09b10e74faeee568a Mon Sep 17 00:00:00 2001 From: Adarnof Date: Thu, 5 Oct 2017 14:35:25 -0400 Subject: [PATCH] Move default logging directory. --- allianceauth/project_template/log/.gitkeep | 0 allianceauth/project_template/project_name/log/.gitignore | 2 -- allianceauth/project_template/project_name/settings/base.py | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 allianceauth/project_template/log/.gitkeep delete mode 100644 allianceauth/project_template/project_name/log/.gitignore diff --git a/allianceauth/project_template/log/.gitkeep b/allianceauth/project_template/log/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/allianceauth/project_template/project_name/log/.gitignore b/allianceauth/project_template/project_name/log/.gitignore deleted file mode 100644 index 73edf032..00000000 --- a/allianceauth/project_template/project_name/log/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -!.gitignore -* \ No newline at end of file diff --git a/allianceauth/project_template/project_name/settings/base.py b/allianceauth/project_template/project_name/settings/base.py index ca5b1616..630121d8 100644 --- a/allianceauth/project_template/project_name/settings/base.py +++ b/allianceauth/project_template/project_name/settings/base.py @@ -172,7 +172,7 @@ ALLOWED_HOSTS = ['*'] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': str(os.path.join(PROJECT_DIR, 'alliance_auth.sqlite3')), + 'NAME': str(os.path.join(BASE_DIR, 'alliance_auth.sqlite3')), }, } @@ -228,7 +228,7 @@ LOGGING = { 'log_file': { 'level': 'INFO', # edit this line to change logging level to file 'class': 'logging.handlers.RotatingFileHandler', - 'filename': os.path.join(PROJECT_DIR, 'log/allianceauth.log'), + 'filename': os.path.join(BASE_DIR, 'log/allianceauth.log'), 'formatter': 'verbose', 'maxBytes': 1024 * 1024 * 5, # edit this line to change max log file size 'backupCount': 5, # edit this line to change number of log backups