FLASK_ENV is deprecated
Closed this issue · 0 comments
sixcare commented
FLASK_ENV
has been deprecated since 2.2.0: https://flask.palletsprojects.com/en/2.2.x/changes/?highlight=flask_env#version-2-2-0
This can be fixed with setting FLASK_DEBUG
instead of FLASK_ENV
: https://flask.palletsprojects.com/en/2.2.x/config/#DEBUG
This should be fixed to remove deprecation warning:
$ flask run --debugger --with-threads --reload --port 5000
'FLASK_ENV' is deprecated and will not be used in Flask 2.3. Use 'FLASK_DEBUG' instead.