擅长:python、mysql、java
<p>默认情况下,<code>context_object_name</code>是<code>object_list</code></p>
<p>您可以使用<code>object_list</code>访问<code>template</code>中的帖子列表</p>
<pre><code>{% for post in object_list %}
{{ post }} <! with lowercase >
{% endfor %}
</code></pre>
<p>或者将<code>context_object_name</code>更改为<code>post_list</code>,这样就可以在模板中使用<code>post_list</code>访问帖子列表</p>
^{pr2}$