Hi, I’m trying to add a “X days until Christmas” line to my email where X is the difference between today’s date and 25th Dec, as a count.
I’ve tried using Django’s timeuntil function:
{{ xmas|timeuntil:today }}
but unsure how to define “xmas”? {% with xmas=date(2023, 12, 25) %} is giving an error
Would appreciate any help with this! Hoping to avoid using a timer as I want it to look human