You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this only affects the value of app.env, not FLASK_ENV. Both are deprecated. app.env has no effect on Flask itself anymore. Only FLASK_ENV=development will switch to debug mode.
Previously, if
FLASK_ENV
was not set, it would default to"production"
, now it defaults to"development"
.Reproduction:
Run using gunicorn,
gunicorn flask_demo.app:app
withFLASK_ENV
unset,Flask 2.2.1, this handler prints:
app.config.get('ENV')='development'
downgrade to 2.1.0:
app.config.get('ENV')='production'
I assume this due to #4720,
src/flask/app.py:693
Environment:
The text was updated successfully, but these errors were encountered: