I have a basic question, in the Django template language how can you tell if you are at the last loop iteration in a for loop?
for
{{ forloop.last }}
You would use forloop.last. For example:
<ul> {% for item in menu_items %} <li{% if forloop.last %} class='last'{% endif %}>{{ item }}</li> {% endfor %} </ul>