summaryrefslogtreecommitdiff
path: root/scipy2016/wsgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'scipy2016/wsgi.py')
-rwxr-xr-x[-rw-r--r--]scipy2016/wsgi.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/scipy2016/wsgi.py b/scipy2016/wsgi.py
index 8a257db..e8c8013 100644..100755
--- a/scipy2016/wsgi.py
+++ b/scipy2016/wsgi.py
@@ -1,5 +1,5 @@
"""
-WSGI config for scipy2016 project.
+WSGI config for online_test project.
It exposes the WSGI callable as a module-level variable named ``application``.
@@ -8,7 +8,25 @@ https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
+import sys
+
+
+sys.path.insert(0, '/Site/scipy_in_2016/scipy/scipy2016')
+sys.path.insert(1, '/Site/scipy_in_2016/scipy')
+sys.path.insert(2, '/Site/scipy_in_2016/scipy_env/lib/python2.7/site-packages')
+# We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks
+# 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.setdefault("DJANGO_SETTINGS_MODULE", "scipy2016.settings")
+activate_this = '/Site/scipy_in_2016/scipy_env/bin/activate_this.py'
+# This application object is used by any WSGI server configured to use this
+# file. This includes Django's development server, if the WSGI_APPLICATION
+# setting points here.
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
+
+# Apply WSGI middleware here.
+# from helloworld.wsgi import HelloWorldApplication
+# application = HelloWorldApplication(application)