summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordk-152017-06-02 15:30:02 +0530
committerdk-152017-06-02 15:30:02 +0530
commit7d1f9a42172c2aeeb1b6a802aff5d330285578d0 (patch)
treef3554b728c5704a7646341ede0b7f827c144543b
parentdd571dbdd9733ce0a8368dc3798337cbc3053632 (diff)
downloadSBHS-2018-Rpi-7d1f9a42172c2aeeb1b6a802aff5d330285578d0.tar.gz
SBHS-2018-Rpi-7d1f9a42172c2aeeb1b6a802aff5d330285578d0.tar.bz2
SBHS-2018-Rpi-7d1f9a42172c2aeeb1b6a802aff5d330285578d0.zip
Resolve version compatibility issues
-rwxr-xr-x[-rw-r--r--]index.wsgi12
1 files changed, 6 insertions, 6 deletions
diff --git a/index.wsgi b/index.wsgi
index ed3b687..1f119a6 100644..100755
--- a/index.wsgi
+++ b/index.wsgi
@@ -3,17 +3,17 @@ import sys
import site
# Add the site-packages of the chosen virtualenv to work with
-site.addsitedir('/home/vlabs/sbhs_vlabs/sbhs/local/lib/python2.7/site-packages/')
+site.addsitedir('/home/dkoder/SBHS-debakanta/local/lib/python2.7/site-packages/')
# Add the app's directory to the PYTHONPATHr
-sys.path.append('/home/vlabs/sbhs_vlabs/sbhs/sbhs_server/')
-sys.path.append('/home/vlabs/sbhs_vlabs/sbhs/sbhs_server/sbhs_server/')
+sys.path.append('/home/dkoder/sbhs/')
+sys.path.append('/home/dkoder/sbhs/sbhs_server/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'sbhs_server.settings'
# Activate your virtual env
-activate_env=os.path.expanduser("/home/vlabs/sbhs_vlabs/sbhs/bin/activate_this.py")
+activate_env=os.path.expanduser("/home/dkoder/SBHS-debakanta/bin/activate_this.py")
execfile(activate_env, dict(__file__=activate_env))
-import django.core.handlers.wsgi
-application = django.core.handlers.wsgi.WSGIHandler() \ No newline at end of file
+from django.core.wsgi import get_wsgi_application
+application = get_wsgi_application() \ No newline at end of file