summaryrefslogtreecommitdiffstats
path: root/settings.py
diff options
context:
space:
mode:
authorExpo laptop Crowley <cucc.expedition@gmail.com>2023-07-05 18:35:17 +0200
committerExpo laptop Crowley <cucc.expedition@gmail.com>2023-07-05 18:35:40 +0200
commitd2bcef6e3693c726e0c6014934f488efe367a1ad (patch)
tree9edc000b7d7aeb7fcd341bcfb58bbd110732155d /settings.py
parent067fcd9892ea1c723139c81f2eb5576580e89e52 (diff)
downloadtroggle-d2bcef6e3693c726e0c6014934f488efe367a1ad.tar.gz
troggle-d2bcef6e3693c726e0c6014934f488efe367a1ad.tar.bz2
troggle-d2bcef6e3693c726e0c6014934f488efe367a1ad.zip
Turn menu bar magenta if running on localserver
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"