2017年11月29日

摘要: 编写要求登录的装饰器 from functools import wraps def loginFirst(func): #参数是函数 @wraps(func) def wrapper(*args, ** kwargs): #定义个函数将其返回 #要求登录 return func(*args, ** 阅读全文
posted @ 2017-11-29 15:24 06黄良龙 阅读(123) 评论(0) 推荐(0) 编辑

2017年11月24日

摘要: 用上下文处理器app_context_processor定义函数 在父模板中更新导航,插入登录状态判断代码。、 完成注销功能。 阅读全文
posted @ 2017-11-24 20:19 06黄良龙 阅读(85) 评论(0) 推荐(0) 编辑

2017年11月22日

摘要: 1.js:设置return 2.html:设置 a.form b.input py: session: 阅读全文
posted @ 2017-11-22 20:44 06黄良龙 阅读(94) 评论(0) 推荐(0) 编辑

2017年11月18日

摘要: from flask import Flask, request,redirect,url_for from flask import render_template from flask_sqlalchemy import SQLAlchemy import config app=Flask(__name__) app.config.from_object(config) db=SQLAlc... 阅读全文
posted @ 2017-11-18 20:47 06黄良龙 阅读(102) 评论(0) 推荐(0) 编辑

2017年11月16日

摘要: 增加:db.session.add(user)db.session.commit() 查询:User.query.filter(User.username == 'mis1114').first() 修改:user.password = '111111'db.session.commit() 删除:db.session.delete(user)db.session.commit() from f... 阅读全文
posted @ 2017-11-16 17:03 06黄良龙 阅读(95) 评论(0) 推荐(0) 编辑

2017年11月14日

摘要: from flask import Flask from flask_sqlalchemy import SQLAlchemy import config app=Flask(__name__) app.config.from_object(config) db=SQLAlchemy(app) class User(db.Model): __tablename__='user' ... 阅读全文
posted @ 2017-11-14 21:13 06黄良龙 阅读(142) 评论(0) 推荐(0) 编辑

2017年11月12日

摘要: 1、带label的文本输入区域 2、为什么要进行管理信息系统的战略规划? 3、管理信息系统的开发方法有哪几种?各有什么优缺点? 4.case工具 优点:数据完整性规则得以一致遵循,提高了软件开发的效率和质量,同时也解放了广大IT技术人员,降低了软件开发的成本 4、.管理信息系统的设计包括哪些方面的设 阅读全文
posted @ 2017-11-12 16:47 06黄良龙 阅读(110) 评论(0) 推荐(0) 编辑

2017年11月5日

摘要: from flask import Flask,render_template app = Flask(__name__) @app.route('/') def daohang(): return render_template('112DH.html') @app.route('/long/') def long(): return 'long' @app.rout... 阅读全文
posted @ 2017-11-05 18:33 06黄良龙 阅读(111) 评论(0) 推荐(0) 编辑

2017年11月3日

摘要: 导航HTML 阅读全文
posted @ 2017-11-03 17:15 06黄良龙 阅读(128) 评论(0) 推荐(0) 编辑

2017年11月2日

摘要: 夜间开关js 父模板html css 阅读全文
posted @ 2017-11-02 21:00 06黄良龙 阅读(92) 评论(0) 推荐(0) 编辑

导航