Answers for "how to access app.config globally in flask app"

0

how to access app.config globally in flask app

from flask import current_app

@api.route("/info")
def get_account_num():
    num = current_app.config["INFO"]
Posted by: Guest on June-13-2021

Python Answers by Framework

Browse Popular Code Answers by Language