uwsgi 的app变量名称必须为application

from myproject import app as application

if __name__ == "__main__":
    application.run()

否则会提示:

unable to load app 0 (mountpoint='') (callable not found or import error)

*** no app loaded. going in full dynamic mode ***

 

--- no python application found, check your startup logs for errors ---

posted @ 2015-10-30 18:31  孤独行者  阅读(1409)  评论(0编辑  收藏  举报