django博客項目

查詢全部文章,完成文章列表在前端的展現 1.查詢全部文章html 2.將查詢結果返回到前端前端 def newList(request): articles = Article.object.order_by("-time") return render_to_response("newList.html",locals()) 3.前端調用循環渲染數據python {% if ar
相關文章
相關標籤/搜索