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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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