Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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"]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #access #globally #flask #app
ADD COMMENT
Topic
Name
1+3 =