2018年1月5日

个人学期总结

摘要: 本学期在杜老师的带领下,进行了python的学习,在博客园发布了很多篇学习随笔,自己也对这个语言有了一定的认识。我的学习过程大概以下内容: 这学期一开始老师带领我们了解并理解管理信息系统,并做了一些python基本的功能并让自己实现python的功能,其中我们学习了Python进行简单算数计算。了解 阅读全文

posted @ 2018-01-05 00:48 122叶远超 阅读(414) 评论(0) 推荐(0) 编辑

2018年1月3日

管理信息系统 第三部分 作业

摘要: 1.DDS和IDDS的组成。 答:DSS决策支持系统:决策支持系统基本结构主要由四个部分组成,即数据部分、模型部分、推理部分和人机交互部分: 数据部分是一个数据库系统; 模型部分包括模型库(MB)及其管理系统(MBMS); 推理部分由知识库(KB)、知识库管理系统(KBMS)和推理机组成; 人机交互 阅读全文

posted @ 2018-01-03 10:52 122叶远超 阅读(118) 评论(0) 推荐(0) 编辑

2017年12月29日

模型分离(选做)

摘要: 模型分离--让代码更方便管理 新建models.py,将模型定义全部放到这个独立的文件中。 新建exts.py,将db = SQLAlchemy()的定义放到这个独立的文件中。 models.py和主py文件,都从exts.py中导入db。 在主py文件中,对db进行始化,db.init_app(a 阅读全文

posted @ 2017-12-29 17:54 122叶远超 阅读(79) 评论(0) 推荐(0) 编辑

2017年12月22日

密码保护

摘要: 1.更新User对象,设置对内的_password class User(db.Model): __tablename__ = 'user' _password = db.Column(db.String(200), nullable=False) #内部使用 2.编写对外的password fro 阅读全文

posted @ 2017-12-22 19:36 122叶远超 阅读(116) 评论(0) 推荐(0) 编辑

2017年12月20日

实现搜索功能

摘要: Lobby.query.filter( or_( and_( Lobby.id == Team.lobby_id, LobbyPlayer.team_id == Team.id, LobbyPlayer.player_id == player.steamid ), and_( Lobby.id == 阅读全文

posted @ 2017-12-20 18:08 122叶远超 阅读(92) 评论(0) 推荐(0) 编辑

2017年12月19日

完成个人中心—导航标签

摘要: 个人中心—视图函数带标签页面参数tag@app.route('/usercenter//')def usercenter(user_id, tag): if tag == ‘1': return render_template('usercenter1.html', **context) 个人中心—导航标签链接增加tag参数全部问答 个人中心—有链接到个人中心页面的url增加ta... 阅读全文

posted @ 2017-12-19 20:18 122叶远超 阅读(71) 评论(0) 推荐(0) 编辑

2017年12月15日

个人中心标签页导航

摘要: %}{% extends'self.html' %} {% block user %} <div class="detail_left"> {% for foo in user.comments %} <span class="icon2" aria-hidden="true"><img src=" 阅读全文

posted @ 2017-12-15 17:52 122叶远超 阅读(84) 评论(0) 推荐(0) 编辑

2017年12月13日

评论列表显示及排序,个人中心显示

摘要:  提交作业 显示所有评论{% for foo in ques.comments %} 所有评论排序uquestion = db.relationship('Question', backref=db.backref('comments', order_by=creat_time.desc)) 显示 阅读全文

posted @ 2017-12-13 15:02 122叶远超 阅读(126) 评论(0) 推荐(0) 编辑

2017年12月8日

完成评论功能

摘要: 定义评论的视图函数@app.route('/comment/',methods=['POST'])def comment():读取前端页面数据,保存到数据库中 用 {% endblock %} {% block main %} {{ question.title }} {{ question.author.username }} {{ question.c... 阅读全文

posted @ 2017-12-08 20:28 122叶远超 阅读(117) 评论(0) 推荐(0) 编辑

2017年12月7日

从首页问答标题到问答详情页

摘要:  提交作业 主PY文件写视图函数,带id参数。 @app.route('/detail/<question_id>')def detail(question_id): quest = return render_template('detail.html', ques = quest) 首页标题的 阅读全文

posted @ 2017-12-07 12:37 122叶远超 阅读(118) 评论(0) 推荐(0) 编辑

导航