DEV Community

Discussion on: Using Context processor in Django to create dynamic footer

Collapse
 
anilbhattaraitoronto profile image
Anil Bhattarai

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

Thread Thread
 
harveyhalwin profile image
Heinek Halwin

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.

Thread Thread
 
anilbhattaraitoronto profile image
Anil Bhattarai

{percent now 'Y' percent}
replace 'percent' with %
the now method with 'Y' returns the given year in the template