WSGI updating python path
This commit is contained in:
parent
dc7df61605
commit
76a574c484
1 changed files with 4 additions and 1 deletions
|
@ -7,8 +7,11 @@ For more information on this file, see
|
||||||
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
|
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import sys, os, os.path
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mamweb.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mamweb.settings")
|
||||||
|
|
||||||
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||||
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'lib', 'python2.7', 'site-packages'))
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
||||||
|
|
Loading…
Reference in a new issue