WSGI updating python path

This commit is contained in:
Tomas Gavenciak 2015-05-14 01:47:57 +02:00
parent dc7df61605
commit 76a574c484

View file

@ -7,8 +7,11 @@ For more information on this file, see
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")
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
application = get_wsgi_application()