摘要: 先创建数据库依赖文件如 flask-sqlalchemy.pyfrom flask_sqlalchemy import SQLAlchemy db = SQLAlchemy()然后,创建数据库表单,database.pyfrom database_extention import db class User(db.Model): id = db.Column( db.Integer, primary_key=True) name = db.Column( db.String( 50 ), unique = True ) email = db.Column( db.Strin... 阅读全文
posted @ 2013-02-03 23:49 brackenbo 阅读(1249) 评论(0) 推荐(0) 编辑