-
-
Notifications
You must be signed in to change notification settings - Fork 309
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_wtf no longer compatible with flask 2.3.0 #561
Comments
looks like changing this line to
would fix it |
matthew-shaw
added a commit
to matthew-shaw/flask-wtf
that referenced
this issue
Apr 25, 2023
Flask 2.3.1 fixes the early removal, we'll still update Flask-WTF as well |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem:
flask_wtf's
__init__
imports recaptcha, which in its__init__
imports fields, which in turn imports widgets, where the linefrom flask import Markup
raises an ImportError. According to the changelog in flask 2.3.0 this is only only deprecated, but apparently it is actually a breaking changeTo reproduce it:
pip install flask 2.3.0 and do `flask_wtf.csrf import CSRFProtect
Expected behaviour that didn't happen:
Is should import CSRFProtect without rasing an ImportError.
Environment:
The text was updated successfully, but these errors were encountered: