Django - current date and time in the template

The title is pretty clear. How to present current data and time in django template?

+6
source share
1 answer

Try using the built-in django template tags and filters: https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#now

Example: It is {% now "jS FYH:i" %}

+17
source

Source: https://habr.com/ru/post/985147/


All Articles