Say I have a for loop, which lists a bunch of Users. There might be 0-n Users in the loop. I want to put commas after each User name except the last one.
So for:
<p>
{% for u in users %}
{{u.name}},
{% endfor }
</p>
I get:
Sam, Neil, Bob,
I want:
Sam, Neil, Bob
I agree join is a good approach. If you want to do it with for, try