# 需要导入模块: 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 ...
我猜您正在覆盖models.py文件中的数据库对象。我建议您使用sqlalchemy本身或flask-sqlalchemy,而不是将...