summaryrefslogtreecommitdiff
path: root/scipy2017/wsgi.py.orig
diff options
context:
space:
mode:
authorprashantsinalkar2017-09-07 12:26:06 +0530
committerprashantsinalkar2017-09-07 12:26:06 +0530
commit9f89e398c88fa0982363d5f42e10f04dc4b58911 (patch)
treef0b8bb2d7988c21ba56d00f025d4405e2a975fb0 /scipy2017/wsgi.py.orig
parenta545b3f01d16d6dcaebe3067a2e847df7c271a59 (diff)
downloadSciPy2017-9f89e398c88fa0982363d5f42e10f04dc4b58911.tar.gz
SciPy2017-9f89e398c88fa0982363d5f42e10f04dc4b58911.tar.bz2
SciPy2017-9f89e398c88fa0982363d5f42e10f04dc4b58911.zip
initial commit for development
Diffstat (limited to 'scipy2017/wsgi.py.orig')
-rwxr-xr-xscipy2017/wsgi.py.orig32
1 files changed, 32 insertions, 0 deletions
diff --git a/scipy2017/wsgi.py.orig b/scipy2017/wsgi.py.orig
new file mode 100755
index 0000000..6c6af57
--- /dev/null
+++ b/scipy2017/wsgi.py.orig
@@ -0,0 +1,32 @@
+"""
+WSGI config for online_test project.
+
+It exposes the WSGI callable as a module-level variable named ``application``.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
+"""
+
+import os
+import sys
+
+
+sys.path.insert(0, '/Site/scipy16/SciPy2016/scipy2016')
+sys.path.insert(1, '/Site/scipy16/SciPy2016')
+sys.path.insert(2, '/Site/scipy16/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/scipy16/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)