flask application context
#flask
The Application Context — Flask 1.0.2 documentation
Rather than passing the application around to each function, the current_app and g proxies are accessed instead.
解決するところ app factory pattern や blueprints, extensionsで、app instanceがいない。
However, importing the app instance within the modules in your project is prone to circular import issues.
flaskでglobalに保持することを前提としたひどいライブラリを騙し騙し使う方法 - Qiita
私は、globalに保持してたので、解決方法がみえた。
模索しはじめたころは、gae python caching . この程度の考え。少し進歩した。