flask的小错误
时间:2020-06-16 21:50:15
收藏:0
阅读:65
这几天刚学flask,根据录屏学代码的时候,遇到一个问题

基本能看懂错误,role_id是类的一个字段,应该是一个对象,最后发现是单词写错了,应该是大写的Column,
db.Column(db.Integer,db.ForeignKey(‘roles.id‘))
参考博客:https://www.liudalao.com/archives/7/
原文:https://www.cnblogs.com/sunflying/p/13145174.html
评论(0)