0

What does {% %} means in django

{% block content %}

15th Jun 2021, 11:15 AM
Obichukwu Ezimoha
Obichukwu Ezimoha - avatar
3 Antworten
+ 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.
15th Jun 2021, 7:09 PM
CLAD
CLAD - avatar
15th Jun 2021, 5:31 PM
visph
visph - avatar
+ 1
Thanks
15th Jun 2021, 9:24 PM
Obichukwu Ezimoha
Obichukwu Ezimoha - avatar