diff options
Diffstat (limited to 'scipy2017/wsgi.py')
-rwxr-xr-x | scipy2017/wsgi.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/scipy2017/wsgi.py b/scipy2017/wsgi.py new file mode 100755 index 0000000..0e8094d --- /dev/null +++ b/scipy2017/wsgi.py @@ -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/SciPy2017/scipy2017') +sys.path.insert(1, '/Site/scipy16/SciPy2017') +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", "scipy2017.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) |