I would like to include a partial n times in a django app (I am new to/learning django). I am more experienced in rails, where I would simply write:
<% 3.times do %>
render 'feeds/feature'
<% end %>
I would like to know how to do something similar in django. Here is what I thought to do:
{% i = 1%}
{% for i =< 9 %}
{% include 'feeds/feature.html'%}
{% i += 1%}
{% end %}
This, however, does not work - i get a template syntax error Invalid block tag: 'i', expected 'endblock'
Can I embed python into a django page like I do in rails? And, more importantly, how would I include the feature.html page n (or in this case 9) times in django?