Skip to content

Custom request-scoped global proxy with Flask 2.3 #5261

Closed Answered by ThiefMaster
mbarakaja asked this question in Q&A
Discussion options

You must be logged in to vote

Why not simply change your lookup callback to get it from g instead of the request ctx stack?

current_org = LocalProxy(lambda: g.get('current_org'))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mbarakaja
Comment options

Answer selected by mbarakaja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants