aboutsummaryrefslogtreecommitdiffstats
path: root/config/wsgi.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-07 21:03:11 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-07 21:03:11 +0100
commit2e21f37eaf031300b4f7ec0626333255f16e7bd0 (patch)
tree420922015307fde6156345a942f383313f7df180 /config/wsgi.py
parent2947010fe6fe3d54019164f9d8213a2fede55a45 (diff)
big update! got working on gcloud and with log and new navbar
Diffstat (limited to '')
-rw-r--r--config/wsgi.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/wsgi.py b/config/wsgi.py
index e0c17b0..c94e859 100644
--- a/config/wsgi.py
+++ b/config/wsgi.py
@@ -28,7 +28,12 @@ sys.path.append(os.path.join(app_path, "ctrack"))
# if running multiple sites in the same mod_wsgi process. To fix this, use
# mod_wsgi daemon mode with each site in its own daemon process, or use
# os.environ["DJANGO_SETTINGS_MODULE"] = "config.settings.production"
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production")
+
+if os.getenv('GAE_APPLICATION', None):
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.gcloud_settings")
+else:
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
+
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION