宝塔面板部署Flask报错unable to load app 0 (mountpoint=”) (callable not found or import error)

问题描述

image

1
2
unable to find "application" callable in file /www/wwwroot/M/G/app.py
unable to load app 0 (mountpoint='') (callable not found or import error)

解决方法

在项目设置-运行配置中添加一行,设置flask的启动文件名。这里设置的是Flask默认的启动文件名app。

image-2

.