2016-06-03 19:07:43,699 :Error running WSGI application
Traceback (most recent call last):
File "/bin/user_wsgi_wrapper.py", line 154, in __call__
app_iterator = self.app(environ, start_response)
File "/bin/user_wsgi_wrapper.py", line 170, in import_error_application
raise e
ImportError: No module named wsgi
import os
import sys
# add your project directory to the sys.path
project_home = "/home/pratkm/mysite"
if project_home not in sys.path:
sys.path.append(project_home)
# set environment variable to tell django where your settings.py is
os.environ["DJANGO_SETTINGS_MODULE"] = "mysite.settings"
# serve django via WSGI in Django < 1.7
#import django.core.handlers.wsgi
#application = django.core.handlers.wsgi.WSGIHandler()
# serve django via WSGI in Django >= 1.7
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
我尝试过使用virtualenvs,但没有任何帮助我使用python 2.7和django 1.9请帮我解决这个错误我的settings.py文件在mysite文件夹中,所以我在wsgi文件中配置