0
What does {% %} means in django
{% block content %}
3 Respuestas
+ 3
You need to read the Django documentation about built-in template tags and filters.
- In this case {%%} are tags that provide arbitrary logic in the rendering process.
- A tag can output content, serve as a control structure or for loop
- an example about this:
{% if user.is_authenticated %}
{# Here do something. This is a line comment#}
{% endif %}
I hope this helps you.
+ 2
this is django template tag syntax:
https://docs.djangoproject.com/en/3.2/ref/templates/language/
+ 1
Thanks