date is very important for determining whether a post is published, i.e. a post with a date in the future will not be visible.
- As of today, the
date field is used to construct the URL using the POST_PREFIX settings, e.g. /2024/11/28/my-blog-post
- As of today, we're not really using the
modified_date for anything useful.
The modified_date uses Django's auto_now=True setting in the model to update each time the blog post is updated, but what should we use it for? Some ideas...
- build the URL off the
modified_date instead? I don't know of any other blogging system that does this. It would break the previous URL and would result in unexpected behaviour. Not a good idea. 👎
- Used in the sitemap? Currently building this out now, so will update soon. ⏰
- We don't have a template tag for it, but could be useful to show the modified date so that visitors know that it has been updated since original publishing. 👍
- Although the template tag should have some logic so that if the modified date is within a certain timespan from the published date, it shows nothing. 🤔
- ...
dateis very important for determining whether a post is published, i.e. a post with adatein the future will not be visible.datefield is used to construct the URL using thePOST_PREFIXsettings, e.g./2024/11/28/my-blog-postmodified_datefor anything useful.The
modified_dateuses Django'sauto_now=Truesetting in the model to update each time the blog post is updated, but what should we use it for? Some ideas...modified_dateinstead? I don't know of any other blogging system that does this. It would break the previous URL and would result in unexpected behaviour. Not a good idea. 👎