Edit: if you are using a recent Django SVN check (post 1.3), see Pastylegs answer. Otherwise, here is what you can do:
I use repoze.timeago for this purpose. The code is pretty simple, so you can configure it if necessary.
Here is a custom Django filter called elapsed that I created that uses repoze.timeago.
import datetime from django import template import repoze.timeago register = template.Library()
source share