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

before_first_request has been deprecated #95

Open
jinmiaoluo opened this issue Jul 1, 2023 · 0 comments
Open

before_first_request has been deprecated #95

jinmiaoluo opened this issue Jul 1, 2023 · 0 comments

Comments

@jinmiaoluo
Copy link

When running flask run, an error will occur: AttributeError: 'Flask' object has no attribute 'before_first_request'.

workaround:

diff --git a/requirements.txt b/requirements.txt
index a9a0f2d..34f5e84 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
-Flask
+Flask~=2.2.0
 Flask-SQLAlchemy
 Authlib
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