Browse Source

WSGI updating python path

remotes/origin/feincms
Tomas Gavenciak 10 years ago
parent
commit
76a574c484
  1. 5
      mamweb/wsgi.py

5
mamweb/wsgi.py

@ -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()

Loading…
Cancel
Save