1. 程式人生 > >uwsgi啟動Django專案時:unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in full dynamic mode ***

uwsgi啟動Django專案時:unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in full dynamic mode ***

說起來有點坑

用命令都能正常啟動,但是用配置檔案就是不行

提示

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

 

就這個問題坑我兩天