I am trying to say that there is simpler way to write year in footer in Django without resorting to creating forms. But the liquid language that Dev.to uses does not allow me to insert it
The footer is just an example of using context processor. But I am interested to know an alternate method. Can you write it elsewhere and send me the link. I’ll add it to the blog.
I am trying to say that there is simpler way to write year in footer in Django without resorting to creating forms. But the liquid language that Dev.to uses does not allow me to insert it
The footer is just an example of using context processor. But I am interested to know an alternate method. Can you write it elsewhere and send me the link. I’ll add it to the blog.
{percent now 'Y' percent}
replace 'percent' with %
the now method with 'Y' returns the given year in the template