uwsgi启动Django项目时:unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in full dynamic mode ***

时间:2018-12-20 00:08:15   收藏:0   阅读:2038

说起来有点坑

用命令都能正常启动,但是用配置文件就是不行

提示

unable to load app 0 (mountpoint=‘‘) (callable not found or import error)
*** no app loaded. going in full dynamic mode ***

最后准备睡觉了了,无意间解决了

uwsgi.ini文件的wsgi模块是这样写的,一直报错,网上的都找遍了还是没解决

module = AutoTestSite.wsgi:application //指定wsgi模块

最后修改注释,放到上面,成功启动了

#指定wsgi模块
module = AutoTestSite.wsgi:application

 

就这个问题坑我两天

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!