summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoderick142017-06-30 01:41:37 +0530
committercoderick142017-06-30 01:41:37 +0530
commitb073da786598afa83d0a4c216e26a150ec7a3aca (patch)
treef844b741075fcde6f3a007b738d8e580f839e43d
parenta888a71d51751df839a1253af25a00da3262f799 (diff)
downloadSBHS-2018-Rpi-b073da786598afa83d0a4c216e26a150ec7a3aca.tar.gz
SBHS-2018-Rpi-b073da786598afa83d0a4c216e26a150ec7a3aca.tar.bz2
SBHS-2018-Rpi-b073da786598afa83d0a4c216e26a150ec7a3aca.zip
Add variables for easier updation
-rwxr-xr-xindex.wsgi11
1 files changed, 7 insertions, 4 deletions
diff --git a/index.wsgi b/index.wsgi
index 1f119a6..1518628 100755
--- a/index.wsgi
+++ b/index.wsgi
@@ -2,17 +2,20 @@ import os
import sys
import site
+path_to_venv = "/home/vlabs-sbhs/code/venv/"
+path_to_project_root = "/home/vlabs-sbhs/code/sbhs/"
+
# Add the site-packages of the chosen virtualenv to work with
-site.addsitedir('/home/dkoder/SBHS-debakanta/local/lib/python2.7/site-packages/')
+site.addsitedir(path_to_venv + 'local/lib/python2.7/site-packages/')
# Add the app's directory to the PYTHONPATHr
-sys.path.append('/home/dkoder/sbhs/')
-sys.path.append('/home/dkoder/sbhs/sbhs_server/')
+sys.path.append(path_to_project_root)
+sys.path.append(path_to_project_root + 'sbhs_server/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'sbhs_server.settings'
# Activate your virtual env
-activate_env=os.path.expanduser("/home/dkoder/SBHS-debakanta/bin/activate_this.py")
+activate_env=os.path.expanduser(path_to_venv + "bin/activate_this.py")
execfile(activate_env, dict(__file__=activate_env))
from django.core.wsgi import get_wsgi_application