from flask import Flask app = Flask(__name__) app.config.from_object('config') @app.route("/") def home(): # Print available configuration print(app.config) # Get value from config Value = app.config.get("KAMPRET_BGT") return Value # Run app.run()