The Python Oracle

How to display the current year in a Django template?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Civilization

--

Chapters
00:00 Question
00:22 Accepted answer (Score 387)
00:39 Answer 2 (Score 51)
00:52 Answer 3 (Score 12)
01:03 Answer 4 (Score 9)
01:41 Thank you

--

Full question
https://stackoverflow.com/questions/6259...

Accepted answer links:
[{% now "Y" %}]: https://docs.djangoproject.com/en/dev/re...

Answer 3 links:
[{% now %}]: https://docs.djangoproject.com/en/dev/re...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #django

#avk47