摘要:
首页列表显示全部问答: 将数据库查询结果传递到前端页面 Question.query.all() 前端页面循环显示整个列表。 问答排序 @app.route('/') def index(): context={ 'questions':Question.order_by('creat_time').query.all() } return rend... 阅读全文
posted @ 2017-12-02 19:24
048刘思华
阅读(185)
评论(0)
推荐(0)


浙公网安备 33010602011771号