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 ---
原文:http://www.cnblogs.com/elodio/p/4924126.html