summaryrefslogtreecommitdiff
path: root/example_project/settings.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.net>2015-01-25 12:46:00 +0100
committerÉtienne Loks <etienne.loks@proxience.net>2015-01-25 12:46:00 +0100
commit4e9304bffce29012e26fa13bf3b3ef038333184c (patch)
tree8c773910164353a8acb391527092f070e284d919 /example_project/settings.py
parent56aceffe8361bf01ef472b9c13567c28d7dcb943 (diff)
downloadIshtar-4e9304bffce29012e26fa13bf3b3ef038333184c.tar.bz2
Ishtar-4e9304bffce29012e26fa13bf3b3ef038333184c.zip
LOGFILE variable can be set in local_settings
Diffstat (limited to 'example_project/settings.py')
-rw-r--r--example_project/settings.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index 2825f717e..a7bcdf8f1 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -127,6 +127,8 @@ INSTALLED_APPS = [
#'debug_toolbar',
]
+LOGFILE = '/var/log/django/ishtar.log'
+
LOGGING = {'version': 1,
'disable_existing_loggers': False,
'handlers': {
@@ -205,6 +207,9 @@ if 'archaeological_files' in EXTRA_APPS:
INSTALLED_APPS += EXTRA_APPS
+if LOGFILE:
+ LOGGING['handlers']['logfile']['filename'] = LOGFILE
+
INTERNAL_IPS = ('127.0.0.1',)
if 'JQUERY_URL' not in globals():