We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looks like before_first_request is deprecated in 2.2.0 and removed in 2.3.0
before_first_request
Version 2.2.0
before_first_request is deprecated. Run setup code when creating the application instead. Flask#4605`
Version 2.3.0
The app.before_first_request and bp.before_app_first_request decorators are removed.
app.before_first_request
bp.before_app_first_request
References: https://flask.palletsprojects.com/en/2.3.x/changes/
The text was updated successfully, but these errors were encountered:
For users, As an immediate solution, downgrade your Flask pip install Flask==2.2.2.
pip install Flask==2.2.2.
In general, two ways this can be handled, Option 2 being the preferred one of course.
requirements.txt
<2.3.0
Sorry, something went wrong.
No branches or pull requests
Looks like
before_first_request
is deprecated in 2.2.0 and removed in 2.3.0Version 2.2.0
Version 2.3.0
References: https://flask.palletsprojects.com/en/2.3.x/changes/
The text was updated successfully, but these errors were encountered: