Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name '_request_ctx_stack' from 'flask' #19

Open
mikekeda opened this issue Feb 12, 2024 · 0 comments
Open

ImportError: cannot import name '_request_ctx_stack' from 'flask' #19

mikekeda opened this issue Feb 12, 2024 · 0 comments

Comments

@mikekeda
Copy link

In Flask 3.0.0 deprecated _app_ctx_stack and _request_ctx_stack were removed
https://flask.palletsprojects.com/en/3.0.x/changes/#version-3-0-0
pallets/flask#5223

g should be used instead:

Extension maintainers, be aware that _app_ctx_stack.top and _request_ctx_stack.top are deprecated. Store data on g instead using a unique prefix, like g._extension_name_attr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant