0
什麼是按消費,網絡,分數排序分頁列表的最佳和快速方式。在Django中點擊分頁列表
{% autopaginate profiles 20 %}
{% for profile in profiles %}
<div class="columns seven">
<h1>Name</h1>
</div>
<div class="columns five">
<div class="stats right">
<div class="stat">
<h1>{{ profile.spending }}</h1>
<h4>Spending</h4>
</div>
<div class="stat">
<h1>{{ profile.network|length }}</h1>
<h4>Network</h4>
</div>
<div class="stat">
<h1>{{ profile.score|floatformat:"0"|intcomma }}</h1>
<h4>Score</h4>
</div>
</div>
</div>
{% endfor %}
{% paginate %}