摘要: 准备视图函数search() 修改base.html 中搜索输入框所在的 <form action="{{ url_for('search') }}" method="get"> <input name="q" type="text" placeholder="请输入关键字"> 完成视图函数sear 阅读全文
posted @ 2017-12-20 21:56 055刘柏坚 阅读(186) 评论(0) 推荐(0)
摘要: 个人中心—视图函数带标签页面参数tag@app.route('/usercenter/<user_id>/<tag>')def usercenter(user_id, tag): if tag == ‘1': return render_template('usercenter1.html', ** 阅读全文
posted @ 2017-12-20 19:16 055刘柏坚 阅读(165) 评论(0) 推荐(0)