summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example_project/settings.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index efad5af22..b288992a4 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -346,6 +346,10 @@ PROJECT_SLUG = locals().get("PROJECT_SLUG", "default")
if LOGFILE:
LOGGING["handlers"]["logfile"]["filename"] = LOGFILE
+elif DEBUG:
+ LOGGING["handlers"]["logfile"]["filename"] = (
+ ROOT_PATH + "log-" + PROJECT_SLUG + ".log"
+ )
else:
LOGGING["handlers"]["logfile"]["filename"] = (
"/var/log/django/ishtar-" + PROJECT_SLUG + ".log"