title: Comma Separating List Values in a Jinja template
body: <p>I'm using a for loop to create a list like <code>[1, 2, 3]</code>. Here's my Jinja template, which produce some Javascript:</p>
  
  <pre><code>xAxis: {
                  categories: {
                      [
                      {% for data in records['result'] %}
                          {{ data['_id']['day'] }},
                      {% endfor %}
                  ]
              },
  </code></pre>
  
  <p>It runs fine and generates the expected result, but my IDE (PyCharm) complains that the final comma is unnecessary (it isn't): <code>[1,2,3,]</code> instead of <code>[1,2,3]</code>.</p>
  
  <p>Is there a better way to place a comma at end end (e.g. convert to string first and concatenate the comma to the end)? Or, should I ignore the warning?</p>