
[英]why am I getting this error : AttributeError: 'LocalStack' object has no attribute '__ident_func__' in SQLAlchemy
[英]flask _app_ctx_stack.__ident_func__ error due to __ident_func__ deprecated in werkzeug 2.1
您可以使用scopefunc=greenlet.getcurrent
代替(只需先import greenlet
)。
(我用 Werkzeug==2.2.2 对此进行了测试)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.