0

I am working on displaying a post in django and currently to display when the post was created, I am using {{ instance.post_created }}.

I was wondering if there was anyway I could get it to say "2 days ago" if the post was made on the 28th of Jan and the person was viewing it on the 30th of Jan as an example.

Sayse
  • 42,633
  • 14
  • 77
  • 146
Will
  • 17
  • 4
  • [`naturaltime`](https://docs.djangoproject.com/en/1.10/ref/contrib/humanize/#naturaltime) – Sayse Feb 01 '17 at 15:58

1 Answers1

0

You could use Naturaltime or do it by hand using javascript

Community
  • 1
  • 1