启动uwsgi报错:ImportError: No module named django.core.wsgi

问题:

启动uwsgi时报错:ImportError: No module named django.core.wsgi

解决方法:

在uwsgi.ini添加 pythonpath = /usr/local/python27/lib/python2.7/site-packages


uwsgi.ini完整文件

[uwsgi]

socket = 127.0.0.1:8001

master = true

vhost = true

no-site = true

chdir = /usr/local/django/osinfo

wsgi-file = /usr/local/django/osinfo/osinfo/wsgi.py

workers = 2           

reload-mercy = 10

vacuum = true         

max-requests = 1000   

limit-as = 512

buffer-size = 30000

pidfile = /var/run/uwsgi.pid

daemonize = /tmp/uwsgi.log

pythonpath = /usr/local/python27/lib/python2.7/site-packages


参考博文:http://www.cnblogs.com/fangyuan1004/p/4546567.html




     本文转自1321385590 51CTO博客,原文链接:http://blog.51cto.com/linux10000/1963126,如需转载请自行联系原作者



你可能感兴趣的:(启动uwsgi报错:ImportError: No module named django.core.wsgi)