标签:title 问答 return out 链接 tail 建立 lock ble
@app.route(‘/detail/<question_id>‘)
def detail(question_id):
quest =
return render_template(‘detail.html‘, ques = quest)
{{ ques.title}}
{{ ques.id }}{{ ques.creat_time }}
{{ ques.author.username }}
{{ ques.detail }}
建立评论的对象关系映射:
class Comment(db.Model):
__tablename__=‘comment‘
尝试实现发布评论。
标签:title 问答 return out 链接 tail 建立 lock ble
原文地址:http://www.cnblogs.com/lyx1997/p/7998642.html