How to access app.config in a blueprint?

前端 未结 7 966
没有蜡笔的小新
没有蜡笔的小新 2020-12-12 23:07

I am trying to access access application configuration inside a blueprint authorisation.py which in a package api. I am initializing the blueprint in __in

7条回答
  •  暖寄归人
    2020-12-12 23:50

    Blueprints have register method which called when you register blueprint. So you can override this method or use record decorator to describe logic which depends from app.

提交回复
热议问题