1
7gong OP python 版本 2.7
django 版本 1.33 uwsgi 版本 1.26 |
2
BOYPT 2012-12-20 13:20:46 +08:00
这还有什么好释疑的,ImportError肯定是sys.path路径里面有不对的地方了;
可以尝试的: 1.清除掉所有pyc, 2.不用nginx,用uwsgi自带的httpserver运行,不用daemon模式,直接看报错 3.打印sys.path 4.手工运行django_wsgi.py |
3
manoon 2012-12-20 20:21:26 +08:00 via Android
reboot and try it again
|
4
lossdante 2012-12-20 22:25:12 +08:00
lz搭建昂哦那个版本的?不同版本路径写法不一样的
|
5
lossdante 2012-12-20 22:27:24 +08:00
刚才顺手测试了下cmd+enter,sb了,我是问你django是什么版本的?
|
6
7gong OP @BOYPT
1. 已清除重启,错误依旧 3. sys.path : ['/var/www/', '.', '', '/usr/local/lib/python2.7/site-packages/setuptools-0.6c11 -py2.7.egg', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/lo cal/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/l ib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/p ython2.7/site-packages', '/usr/local/lib/python2.7/site-packages/PIL'] 4. 手工运行无任何错误反馈,正常 |
7
7gong OP |