Requires {% load humanize %}
Add {% load humanize %} near the top of any template that
uses |intcomma. Without it Django does not
know the name and raises TemplateSyntaxError.
{% load humanize %} only works when
"django.contrib.humanize" is in your
INSTALLED_APPS — the load fails before the
library is ever reached.
Converts an integer or float to a string with a separator every three digits, so a number a reader has to count digits in becomes one they can read at a glance.
Template
{% load humanize %}
<p>{{ downloads|intcomma }} downloads</p>
Result
<p>4,500,000 downloads</p>
The separator follows the active locale unless you pass False, so a German page gets 4.500.000 without any extra work.
