django博客项目

查询全部文章,完成文章列表在前端的展现 1.查询全部文章html 2.将查询结果返回到前端前端 def newList(request): articles = Article.object.order_by("-time") return render_to_response("newList.html",locals()) 3.前端调用循环渲染数据python {% if ar
相关文章
相关标签/搜索