4👍
UPDATED:
We can assume that you have a post_date
attribute saved in your model capturing the time you save the post. present.time
is the current time that is loaded freshly onto the template when one visits the post. This would be the recommended implementation of what you are looking for:
Submitted on {{ present.date|timesince:post_date }} ago.
- [Django]-Django on Heroku, url template tag causes 'ParseResult' object not callable
- [Django]-Django: Sum by date and then create extra field showing rolling average
- [Django]-Django: Count only the latest object after grouping by month
- [Django]-Python Webshop for Retailers / Distributors
- [Django]-Django – bulk update arrayfield rows postgres
- [Django]-Errors When Installing MySQL-python module for Python 2.7
Source:stackexchange.com