title: how to iterate python-django loop for N times in template?
body: <p>I have an Object in python-django which i want to iterate in Django template for 5 times only, but the object has more than 100 values in it.</p>
  
  <p>What i am doing is :</p>
  
  <pre><code>  {% for x in abc %}
       &lt;h4&gt;{{x.name}}&lt;/h4&gt;    
    {% endfor %}
  </code></pre>
  
  <p>nut this will run run till all elements. want to run it 5 times only.</p>