From 119e3b9c2920c1db504c198dc1f638783dd0e1ab Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 25 Jan 2015 12:46:00 +0100 Subject: LOGFILE variable can be set in local_settings --- example_project/settings.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'example_project/settings.py') 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(): -- cgit v1.2.3