No application found. Either work inside a view function or push 12with app.app_context(): do_someting() 或 1234from flask import has_app_contextif not has_app_context(): from wsgi import app app.app_context().push() IT > 开发 > Python > Flask #python #flask No application found. Either work inside a view function or push https://itxiaopang.github.io/p/5d083691a5834862801e26a23273c941/ 作者 挨踢小胖 发布于 2021年9月11日 许可协议 Python is not installed as a framework解决方法 上一篇 复制记录 下一篇