get year in template django code example Example: django template tag to display current year {% now "Y" %}