摘要: 系统概要说明 现在,随着物联网以及网络技术的飞速发展,互联网已经成为了人们发布与获取信息的重要途径之一,所以通过老师要求,我们设计了一个普通的公司管理信息系统网站。这网站的具有的功能有注册,登录,注销,发布,列表展示,详情页,评论(列表显示),个人中心,搜索,条件组合搜索,文章分类,显示,点赞,收藏 阅读全文
posted @ 2018-06-15 18:48 109-梁浩辉 阅读(3598) 评论(0) 推荐(0) 编辑
摘要: python的心得体会 这学期通过杜云梅老师的带领下,让我学会了python这门课程,从而对python更加深入的了解。 Python是一门面向对象的解释性语言(脚本语言),这一类语言的特点就是不用编译,程序在运行的过程中,由对应的解释器向CPU进行翻译,个人理解就是一边编译一边执行。而JAVA这一 阅读全文
posted @ 2018-01-02 09:40 109-梁浩辉 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 阅读教材,思考并回答以下问题: 1.DDS和IDDS的组成。 DSS决策支持系统:决策支持系统基本结构主要由四个部分组成,即数据部分、模型部分、推理部分和人机交互部分: 数据部分是一个数据库系统; 模型部分包括模型库(MB)及其管理系统(MBMS); 推理部分由知识库(KB)、知识库管理系统(KBM 阅读全文
posted @ 2018-01-02 09:18 109-梁浩辉 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1.更新User对象,设置对内的_password class User(db.Model): __tablename__ = 'user' _password = db.Column(db.String(200), nullable=False) #内部使用 2.编写对外的password fro 阅读全文
posted @ 2017-12-22 21:12 109-梁浩辉 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1、准备视图函数search() 2、修改base.html 中搜索输入框所在的 <form action="{{ url_for('search') }}" method="get"> <input name="q" type="text" placeholder="请输入关键字"> 3、完成视图 阅读全文
posted @ 2017-12-19 21:36 109-梁浩辉 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 个人中心—视图函数带标签页面参数tag@app.route('/usercenter//')def usercenter(user_id, tag): if tag == ‘1': return render_template('usercenter1.html', **context) 个人中心—导航标签链接增加tag参数全部问答 个人中心—有链接到个人中心页面的url增加ta... 阅读全文
posted @ 2017-12-15 21:32 109-梁浩辉 阅读(98) 评论(0) 推荐(0) 编辑
摘要: question comments infomation 新页面user.html,用 实现标签页导航。 Home Profile Messages user.html继承base.html。重写title,head,main块.将上述放在main块中.定义新的块user。 {% extends 'tes... 阅读全文
posted @ 2017-12-14 21:10 109-梁浩辉 阅读(106) 评论(0) 推荐(0) 编辑
摘要: @app.route('/usercenter/') def usercenter(user_id): user = User.query.filter(User.id == user_id).first() context = { 'username': user.username, 'wenda': user.wenda, ... 阅读全文
posted @ 2017-12-12 22:45 109-梁浩辉 阅读(131) 评论(0) 推荐(0) 编辑
摘要: @app.route('/comment/',methods=['POST']) @loginFirst def comment(): comment = request.form.get('new_comment') ques_id = request.form.get('question_id') auth_id = User.query.filter(User.... 阅读全文
posted @ 2017-12-08 21:17 109-梁浩辉 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 主PY文件写视图函数,带id参数。 首页标题的标签做带参数的链接。 {{ url_for('detail',question_id = foo.id) }} 在详情页将数据的显示在恰当的位置。 建立评论的对象关系映射: class Comment(db.Model): __tablename__=' 阅读全文
posted @ 2017-12-05 20:19 109-梁浩辉 阅读(170) 评论(0) 推荐(0) 编辑