summaryrefslogtreecommitdiff
path: root/example_project/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'example_project/settings.py')
-rw-r--r--example_project/settings.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index f4d7ca609..43917523b 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -128,7 +128,7 @@ INSTALLED_APPS = [
# 'debug_toolbar',
]
-LOGFILE = '/var/log/django/ishtar.log'
+LOGFILE = ''
LOGGING = {
'version': 1,
@@ -218,8 +218,13 @@ if 'archaeological_files' in EXTRA_APPS:
INSTALLED_APPS += EXTRA_APPS
+PROJECT_SLUG = locals().get('PROJECT_SLUG', 'default')
+
if LOGFILE:
LOGGING['handlers']['logfile']['filename'] = LOGFILE
+else:
+ LOGGING['handlers']['logfile']['filename'] = \
+ '/var/log/django/ishtar-' + PROJECT_SLUG + '.log'
INTERNAL_IPS = ('127.0.0.1',)