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
authorisation.py
__in
You could also wrap the blueprint in a function and pass the app as an argument:
app
Blueprint:
def get_blueprint(app): bp = Blueprint() return bp
Main:
from . import my_blueprint app.register_blueprint(my_blueprint.get_blueprint(app))