summaryrefslogtreecommitdiffstats
path: root/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/settings.py b/settings.py
index 938c024..71cce39 100644
--- a/settings.py
+++ b/settings.py
@@ -1,3 +1,4 @@
+import sys
"""
Django settings for troggle project.
@@ -17,7 +18,12 @@ https://docs.djangoproject.com/en/dev/ref/settings/
print("* importing troggle/settings.py")
-
+if 'runserver' in sys.argv:
+ print(">>>>running on dev local runserver<<<<")
+ DEVSERVER = True
+else:
+ DEVSERVER = False
+
# default value, then gets overwritten by real secrets
SECRET_KEY = "not-the-real-secret-key-a#vaeozn0---^fj!355qki*vj2"