下面是我的nginx和uwsgi设置:
http://panta.info/blog/3/how-to-install-and-configure-nginx-uwsgi-and-django-on-ubuntu.html
我得到了以下错误:
Thu Sep 26 17:33:11 2013 - *** Operational MODE: preforking ***
Traceback (most recent call last):
File "/var/www/repo/mysite/mysite/mysite/wsgi.py", line 24, in <module>
from django.core.wsgi import get_wsgi_application
ImportError: No module named django.core.wsgi但当我这么做的时候,它就起作用了:
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from django.core.wsgi import get_wsgi_application
>>> get_wsgi_application()
<django.core.handlers.wsgi.WSGIHandler object at 0x7f3b23281790>
>>> 还有什么东西我遗漏了吗?我已经试着调试了一段时间,任何帮助都是非常感谢的!
我还提到这一页,但没有结果:
http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html
发布于 2013-09-27 00:23:49
听起来像是路径问题
在您的uwsgi文件中,可以尝试添加以下内容吗?
home=<abs path to your virtualenv>因此,如果您完全按照本教程进行学习,那么
home=/home/USER/projects/venvhttps://stackoverflow.com/questions/19034911
复制相似问题