摘要: 定义评论的视图函数@app.route('/comment/',methods=['POST'])def comment():读取前端页面数据,保存到数据库中 @app.route('/comments/',methods=['POST']) @loginFirst def comments(): comment=request.form.get('new_comment') ... 阅读全文
posted @ 2017-12-08 12:12 袁颖琳 阅读(111) 评论(0) 推荐(0)