Django display the code in the method of the current date in the template

In the code during the development process more important content recorded together, the following code is the code method of content on Django template displays the current date in the hope that useful to a small partner.
{% Now "Ymd"%}





Show: 2013-05-01



{% now "Y" %}





Display: 2013




 

Guess you like

Origin www.cnblogs.com/Wladybird/p/11230963.html