title: How to do a FOR or loop that start on X and end Y index of a list on Django Template Languge?
body: <p>For example i have a list of 10 objects but i just want to get last 5 or the first 5 objects.</p>
  
  <pre><code>{% for x in objects %}
  .....first 5 objects......
  {% endfor %}
  
  {% for x in objects %}
  .....last 5 objects......
  {% endfor %}
  </code></pre>