What exactly is Werkzeug?

Werkzeug is primarily a library, not a web server, although it does provide a simple web server for development purposes. That development server is what’s providing that Server: header. To go into more detail: First, let’s talk about WSGI. There are a bunch of web servers out there, like Apache, Nginx, Lighttpd, etc. There are … Read more

How to access app.config in a blueprint?

Use flask.current_app in place of app in the blueprint view. from flask import current_app @api.route(“/info”) def get_account_num(): num = current_app.config[“INFO”] The current_app proxy is only available in the context of a request.

tech