I have this variable:
{{ video.pub_date }}
which outputs:
May 16, 2011, 2:03 p.m.
How can I get it to show:
1 month ago
I have loaded humanize on the page, but the django docs for humanize doesn’t really show how to implement it to show what I want:
https://docs.djangoproject.com/en/dev/ref/contrib/humanize/
It just says that it’s possible at the bottom of the page there.
You have to have the development version of Django to use the naturaltime filter
Humanize isn’t a template tag, it’s a library of template filters which means when you load it you have access to various other filters included in the module.
Alternatively you can use the timesince filter withouth having to load any other template tag libraries