摘要: from datetime import datetime from app import db # 会员 class User(db.Model): __tablename__ = "user" id = db.Column(db.Integer, primary_key=True) # 编号 n 阅读全文
posted @ 2018-02-06 23:22 lilied 阅读(1554) 评论(0) 推荐(0) 编辑
摘要: from datetime import datetime from app import db # 会员 class User(db.Model): __tablename__ = "user" id = db.Column(db.Integer, primary_key=True) # 编号 n 阅读全文
posted @ 2018-02-06 21:02 lilied 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 1.新建目录结构 2.在蓝图模块admin下__init__.py加入以下(home同理) from flask import Blueprint admin = Blueprint('admin', __name__) from . import views 3.在蓝图模块admin下views. 阅读全文
posted @ 2018-02-06 20:45 lilied 阅读(383) 评论(0) 推荐(0) 编辑