title: Last element in django template list variable
body: <p>I would like to know how to filter out the last element of a list variable from the context object.</p>
  
  <pre><code>{% for d in data %}
      {{ d }},
  {% endfor %}
  </code></pre>
  
  <p>I don't want to have the <code>,</code> after the last element. Thank you.</p>
  
  <p><strong>NOTE</strong>: This is just a hypothetical example. I know we can use the join filter to achieve the same thing here</p>