团队作业4.6——Scrum Day6
| 成员 | 学号 |
|---|---|
| 林桂旭 | 3121004830 |
| 刘升嘉 | 3121004833 |
| 谭艺豪 | 3121004837 |
| 陈泽瀚 | 3121004818 |
| 梁昊东 | 3121005000 |
GitHub团队仓库: jiajia-chicken
任务完成情况:
- 已完成工作:
| 成员 | 已完成工作 |
|---|---|
| 林桂旭 | 协调团队工作,编写博客园 |
| 梁昊东 | 帮助python实现 |
| 刘升嘉 | 前后端初步连接 |
| 谭艺豪 | 前后端初步连接 |
| 陈泽瀚 | 协调团队工作,编写博客园 |
- 今日计划完成工作:
| 成员 | 计划完成工作 |
| ------ | ------------------------ |
| 林桂旭 | 协调团队工作,编写博客园 |
| 梁昊东 | 帮助python实现 |
| 刘升嘉 | 实现问题反馈功能 |
| 谭艺豪 | 实现问题反馈功能 |
| 陈泽瀚 | 协调团队工作,编写博客园 |
项目燃尽图:

代码签入:

最新模块代码:
@bp.route( rule: "/qa/public",methods=[' GET ,'POST'])alogin_required
def public_question():
if request.method == 'GET':return render_template("public_question.html")else:
form = QuestionForm(request.formif form.validate() :
title = form.title.data
content = form.content .data
question = QuestionModel(title=title, content=content, author=g.user)
db.session.add(auestion)
db.session.commit()
return redirect("/)
else:
print(form.errors)
return redirect(url_for("qa.public_question"))
2 用法
class LoginForm(wtforms.Form):
email = wtforms,StringField(validators=[Email(message="邮箱格式错误")])password = wtforms.StringField(validators=[Length(min=6,max=20,message="密码格式错误")])
2 用法
class QuestionForm(wtforms.Form):
title = wtforms,StringField(validators=[Length(min=3,max=100,message="标题格式错误")])content = wtforms,StringField(validators=[Length(min=3,message="内容格式错误")])
from functools import wrapsfrom flask import g, redirect, url_for
2 用法
def Login_required(func):@wraps(func)
def inner(*args,**kwargs):
if not g.user:
return redirect(url_for("auth.login"))else:
return func(*args,**kwargs)
return inner
运行结果截图:

每日总结:
| 成员 | 总结 |
|---|---|
| 林桂旭 | 加油,坚持,马上完结 |
| 梁昊东 | 加油,坚持 |
| 刘升嘉 | 加油,坚持 |
| 谭艺豪 | 加油,坚持 |
| 陈泽瀚 | 加油,坚持 |
合集:
| 团队作业4.1——冲刺前汇总: | https://www.cnblogs.com/handsamechen/p/17851022.html |
|---|---|
| 团队作业4.2——Scrum Day2: | https://www.cnblogs.com/handsamechen/p/17852036.html |
| 团队作业4.3——Scrum Day3: | https://www.cnblogs.com/handsamechen/p/17852047.html |
| 团队作业4.4——Scrum Day4: | https://www.cnblogs.com/handsamechen/p/17852057.html |
| 团队作业4.5——Scrum Day5: | https://www.cnblogs.com/handsamechen/p/17854981.html |
| 团队作业4.6——Scrum Day6: | 本篇 |