title: How to show results from database splited on the columns in django
body: <p>I have a question about how to show list of records from db splitted on for example 3 columns. I tried to wrote this :</p>
  
  <pre><code>{% for wpis in wpisy_kat %}
  &lt;a href="{% url 'detale_kat' slug_kat=wpis.slug_kat %}"&gt;{{ wpis|slice:"1:5" }} &lt;/a&gt; ({{ wpis.cnt_witryna }}) &lt;br /&gt;
  {% endfor %}
  </code></pre>
  
  <p>but on the end I still have full list (in my case 56 records). </p>