how to access app config globally in flask app

Solutions on MaxInterview for how to access app config globally in flask app by the best coders in the world

showing results for - "how to access app config globally in flask app"
Ronnie
08 Mar 2019
1from flask import current_app
2
3@api.route("/info")
4def get_account_num():
5    num = current_app.config["INFO"]
6