sqlalchemy.exc.NoReferencedTableError: Foreign key associated with column 'admin.role_id' could not find table 'role' with which to generate a foreign key to targe t column 'id'

1:可能是__tablename__ 设置错误

2:视图views中没有导入相应的模型

 

posted @ 2020-10-18 22:08  程序员小艺  阅读(619)  评论(0编辑  收藏  举报