[已解决]Flask的SQLAlchemy数据库出错:sqlalchemy.exc.NoReferencedTableError: Foreign key associated with column ‘events.user_openid’ could not find table ‘user’ with which to generate a foreign key to target column ‘openid’
crifan 9年前 (2016-08-24) 6793浏览 0评论
Flask的SQLAlchemy的数据库,去定义为: class User(db.Model): __tablename__ = ‘wechat_users’ # Columns openid ...