summaryrefslogtreecommitdiff
path: root/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/settings.py b/settings.py
index 8806929..c62dda6 100644
--- a/settings.py
+++ b/settings.py
@@ -273,6 +273,7 @@ INSTALLED_APPS += [
'chimere',
]
+LOGFILE_NAME = ""
LOG_PATH = '/var/log/django/'
MOBILE_DOMAINS = [] # if you have specific domains for mobile access
@@ -328,6 +329,8 @@ if 'LOGGING' not in globals():
},
}
+if LOGFILE_NAME:
+ LOGGING['handlers']['logfile']['filename'] = LOGFILE_NAME
if 'CHIMERE_SHARE_NETWORKS' not in globals():
# after the locals to get the right STATIC_URL