摘要: (1)sqlalchemy.exc.DataError DataError: (pymysql.err.DataError) (1406, u"Data too long for column 'img_url' at row 1") [SQL: u'INSERT INTO classificati 阅读全文
posted @ 2018-05-03 23:22 Adamanter 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 案例表: 1 # coding=utf-8 2 from flask_sqlalchemy import SQLAlchemy 3 4 db = SQLAlchemy() 5 6 7 tags_class = db.Table('tags_classifications', 8 db.Column( 阅读全文
posted @ 2018-05-03 23:18 Adamanter 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: class Article(db.Model): __tablename__ = "article" id =db.Column(db.Integer,primary_key=True, autoincrement=True) title = db.Column(db.String(100), nu 阅读全文
posted @ 2018-05-03 23:01 Adamanter 阅读(232) 评论(0) 推荐(0) 编辑