title: For loop in Django templates
body: <p>I want to display the center of a for loop, for example i for loop the 1-30 then i want to for loop the 11-20</p>
  <p>here is the example of how i use the for loop in my html:</p>
  <p><strong>this is method that i used when i for loop to 30-20</strong></p>
  <pre><code>{% for category in category_list reversed %}
  {% if forloop.counter &lt; 11 %}
  &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;home/category/{{category.name}}&quot;&gt;{{ category.name|title }}&lt;/a&gt;&lt;/li&gt;
  {% endif %}
  {% endfor %}
  </code></pre>
  <p><strong>this i the method when i for loop to 1-10</strong></p>
  <pre><code>{% for category in category_list  %}
  {% if forloop.counter &lt; 11 %}
  &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;home/category/{{category.name}}&quot;&gt;{{ category.name|title }}&lt;/a&gt;&lt;/li&gt;
  {% endif %}
  {% endfor %}
  </code></pre>
  <p><strong>problem how to for loop the 11-20? thanks for the help!</strong></p>