diff options
author | ttt | 2017-05-13 00:29:47 +0530 |
---|---|---|
committer | ttt | 2017-05-13 00:29:47 +0530 |
commit | abf599be33b383a6a5baf9493093b2126a622ac8 (patch) | |
tree | 4c5ab6e0d935d5e65fabcf0258e4a00dd20a5afa /sbhs_server/index.wsgi | |
download | SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.tar.gz SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.tar.bz2 SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.zip |
added all server files
Diffstat (limited to 'sbhs_server/index.wsgi')
-rw-r--r-- | sbhs_server/index.wsgi | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sbhs_server/index.wsgi b/sbhs_server/index.wsgi new file mode 100644 index 0000000..2b8fc21 --- /dev/null +++ b/sbhs_server/index.wsgi @@ -0,0 +1,20 @@ +import os +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/') + +# Add the app's directory to the PYTHONPATHr +sys.path.append('/home/vlabs/sbhs_vlabs/sbhs/') +sys.path.append('/home/vlabs/sbhs_vlabs/sbhs/sbhs_server/') +sys.path.append('/home/vlabs/sbhs_vlabs/sbhs/sbhs_server/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") +execfile(activate_env, dict(__file__=activate_env)) + +import django.core.handlers.wsgi +application = django.core.handlers.wsgi.WSGIHandler() |