Thanks, everyone!<div><br><div>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)!</div><div><br></div><div>—Badri/Hippo</div></div>