If fruits is the list [\'apples\', \'oranges\', \'pears\'],
fruits
[\'apples\', \'oranges\', \'pears\']
is there a quick way using django template tags to produce \"apples, oranges, and p
If you want a '.' on the end of Michael Matthew Toomim's answer, then use:
{% if not forloop.last %}{% ifequal forloop.revcounter 2 %} and {% else %}, {% endifequal %}{% else %}{% endif %}{% if forloop.last %}.{% endif %}