# 需要导入模块: from flask.ext.sqlalchemy import SQLAlchemy [as 别名]# 或者: from flask.ext.sqlalchemy.SQLAlchemy importcreate_scoped_session[as 别名]'config':'sqlite:///config.db','games':'sqlite:///games_master.db'} app.config['SECRET_KEY'] ='jdhq7864r8uihblk'# Flask and...
self.session = self.create_scoped_session(session_options) File ".../python3.10/site-packages/sqlalchemy_oso/flask.py", line 50, in create_scoped_session scopefunc = options.pop("scopefunc", _app_ctx_stack.__ident_func__) AttributeError: 'LocalStack' object has no attribute '__ident_fu...
我猜您正在覆盖models.py文件中的数据库对象。我建议您使用sqlalchemy本身或flask-sqlalchemy,而不是将...