会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yushanshan
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2017年12月2日
首页列表显示全部问答,完成问答详情页布局
摘要: 首页列表显示全部问答: 完成问答详情页布局: 在首页点击问答标题,链接到相应详情页。
阅读全文
posted @ 2017-12-02 19:55 044潘育珊
阅读(128)
评论(0)
推荐(0)
2017年11月30日
制作首页的显示列表
摘要: 在首页添加显示问答的列表,并定义好相应的样式。 无序列表 <ul > <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> 用字典向index.html传递参数。
阅读全文
posted @ 2017-11-30 21:38 044潘育珊
阅读(146)
评论(0)
推荐(0)
2017年11月29日
发布功能完成
摘要: 编写要求登录的装饰器 from functools import wraps def loginFirst(func): #参数是函数 @wraps(func) def wrapper(*args, ** kwargs): #定义个函数将其返回 #要求登录 return func(*args, **
阅读全文
posted @ 2017-11-29 20:16 044潘育珊
阅读(122)
评论(0)
推荐(0)
2017年11月24日
登录之后更新导航
摘要: 用上下文处理器app_context_processor定义函数 在父模板中更新导航,插入登录状态判断代码。、 完成注销功能。
阅读全文
posted @ 2017-11-24 09:54 044潘育珊
阅读(134)
评论(0)
推荐(0)
2017年11月22日
完成登录功能,用session记住用户名
摘要: js:设置return html:设置 py: session:
阅读全文
posted @ 2017-11-22 21:22 044潘育珊
阅读(197)
评论(0)
推荐(0)
2017年11月17日
完成注册功能
摘要: js文件: onclick函数return True时才提交表单,return False时不提交表单。 html文件: def regist(): if request.method == 'GET': return render_template('regist.html') else: use
阅读全文
posted @ 2017-11-17 20:29 044潘育珊
阅读(246)
评论(0)
推荐(0)
2017年11月15日
通过用户模型,对数据库进行增删改查操作。
摘要: 增加:db.session.add(user)db.session.commit() user=User(username='mis111',password='mis111') db.session.add(user) db.session.commit() 查询:User.query.filter(User.username == 'mis1114').first() 修改:user.p...
阅读全文
posted @ 2017-11-15 15:57 044潘育珊
阅读(170)
评论(0)
推荐(0)
2017年11月14日
连接mysql数据库,创建用户模型
摘要: 安装与配置python3.6+flask+mysql数据库 下载安装MySQL数据库 下载安装MySQL-python 中间件 pip install flask-sqlalchemy (Python的ORM框架SQLAlchemy) mysql创建数据库 数据库配置信息config.py 建立mysql和app的连接 创建用户模型 from flask import Flask from...
阅读全文
posted @ 2017-11-14 19:00 044潘育珊
阅读(133)
评论(0)
推荐(0)
2017年11月12日
管理信息系统的开发与管理
摘要: 1、带label的文本输入区域 sent.html sent.css 2、为什么要进行管理信息系统的战略规划?
阅读全文
posted @ 2017-11-12 19:26 044潘育珊
阅读(138)
评论(0)
推荐(0)
2017年11月5日
加载静态文件,父模板的继承和扩展
摘要: 父模板 注册html 登录html 首页html
阅读全文
posted @ 2017-11-05 19:14 044潘育珊
阅读(256)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告