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

Flask: replace deprecated '_request_ctx_stack' #223

Closed
SBriere opened this issue Jul 11, 2023 · 0 comments
Closed

Flask: replace deprecated '_request_ctx_stack' #223

SBriere opened this issue Jul 11, 2023 · 0 comments
Assignees
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request

Comments

@SBriere
Copy link
Member

SBriere commented Jul 11, 2023

Is your feature request related to a problem? Please describe.
'_request_ctx_stack' is deprecated.

LoginModule.py:19: DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.4. from flask import request, _request_ctx_stack

Describe the solution you'd like
According to the doc: https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-2-0

The global variable g or request_ctx should be used instead.

@SBriere SBriere added enhancement New feature or request dependencies Pull requests that update a dependency file labels Jul 11, 2023
@SBriere SBriere assigned doumdi and SBriere and unassigned doumdi Jul 11, 2023
@SBriere SBriere closed this as completed Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants