flask _app_ctx_stack.__ident_func__ error due to __ident_func__ deprecated in werkzeug 2.1

Viewed 1427

I was using _app_ctx_stack.__ident_func__ for sqlalchemy scoped_session for accessing sqlalchemy models inside flask, without using flask sqlalchemy.

scoped_session(session_local, scopefunc=_app_ctx_stack.__ident_func__)

But currently after werkzeug 2.1 __ident_func__ is removed and there is no documentation link how to get ident. enter image description here

1 Answers
Related