摘要: 首页列表显示全部问答: 将数据库查询结果传递到前端页面 Question.query.all() @app.route('/') def index(): context = { # 'user': 'YUAN', 'questions': Question.query.order_by('-creat_time').all() } re... 阅读全文
posted @ 2017-12-04 00:45 袁颖琳 阅读(178) 评论(0) 推荐(0)