[Flask] Globally accessible variables in Flask
badrihippo at gmail.com
badrihippo at gmail.com
Thu Apr 13 03:35:17 EDT 2017
Thanks, everyone!
Yes, Werkzeug's LocalProxy and Flask's @app.context_processor were what
I was looking for. I realised flask_admin is using both: the first one
makes it available to the view, and the second one to the template.
Guess they'll both come in useful, in different contexts (no pun
intended)!
—Badri/Hippo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20170413/24912d9f/attachment.html>
More information about the Flask
mailing list