Requires {% load humanize %}
Add {% load humanize %} near the top of any template that
uses |intword. 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.
Turns a large integer into a friendly word form. Useful for numbers big enough that the exact figure stops mattering — headline counts, follower totals, dashboard tiles.
Template
{% load humanize %}
<p>{{ 1000000|intword }}</p>
<p>{{ 1200000|intword }}</p>
Result
<p>1.0 million</p> <p>1.2 million</p>
Only values of a million or more are converted; anything smaller comes back unchanged, so pair it with intcomma if you want every number formatted.
