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
Flask 2.2 deprecated the variable _app_ctx_stack (and a lot of other stuff). Flask 2.3 removed most of the things 2.2 deprecated. _app_ctx_stack was heavily used in a lot of packages so also in the SQLAlchemy packages. Only the newest versions remove this usage so all dependencies have to be updated.
The deprecation warning looks like:
env/lib/python3.9/site-packages/flask_sqlalchemy/__init__.py:302: DeprecationWarning: '_app_ctx_stack' is deprecated and will be removed in Flask 2.3. Use 'g' to store data, or 'app_ctx' to access the current context.
queries = _app_ctx_stack.top.sqlalchemy_queries
Problems
With SQLAlchemy 2.0 the definition of a Session changed slightly
General
Flask 2.2 deprecated the variable
_app_ctx_stack
(and a lot of other stuff). Flask 2.3 removed most of the things 2.2 deprecated._app_ctx_stack
was heavily used in a lot of packages so also in the SQLAlchemy packages. Only the newest versions remove this usage so all dependencies have to be updated.The deprecation warning looks like:
Problems
NOTES
The text was updated successfully, but these errors were encountered: