diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-04 18:22:44 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-04 18:22:44 +0200 |
commit | 91aa7aa352230dcacec966b5250286d927ed9163 (patch) | |
tree | 5ac3c1b1b1a988b99e9d42da3a06b3d22eb60dab | |
parent | 3730de457fc67f3fa8ce00ace30c24d6f5e1a4a1 (diff) | |
download | Chimère-91aa7aa352230dcacec966b5250286d927ed9163.tar.bz2 Chimère-91aa7aa352230dcacec966b5250286d927ed9163.zip |
settings: add a simple LOGFILE_NAME parameter
-rw-r--r-- | chimere_example_project/settings.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chimere_example_project/settings.py b/chimere_example_project/settings.py index de386cd..09f5743 100644 --- a/chimere_example_project/settings.py +++ b/chimere_example_project/settings.py @@ -276,7 +276,7 @@ INSTALLED_APPS += [ LOG_PATH = '/var/log/django/' MOBILE_DOMAINS = [] # if you have specific domains for mobile access - +LOGFILE_NAME = "" try: from local_settings import * except ImportError as e: @@ -328,6 +328,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 |