【django】【基础】文章列表页 JerichoPH 2018-05-01 117 阅读1分钟 文章列表页 打开:supporter/templates/index.html 修改内容,用来循环列表: {% for item in article_list %} <a href="javascript:">{{ item.title }}</a> <br> {% endfor %} 打开:supporter/views.index() 读取全部数据:article_list = models.Article.objects.all()