I am learning how to design a website as part of Django. I don’t understand something about the html template file.
I saw that the tutorial used curly braces ( <% if ... %> <% endif %>etc.) to insert logic into the code. But when I try to use this syntax on a server other than Django (Apache), this syntax has not been interpreted, and I can see mine <% if ... %>... right on my page.
<% if ... %> <% endif %>
<% if ... %>
I do not know why this is so.
So this syntax is not part of HTML, but part of Django, so can it be interpreted?
First and foremost, the correct tags for the Django: template language are: {% %}rather than <? ?>.
{% %}
<? ?>
, Django. , , , , . Django , , .
, Django , . , HTML , {% block pasta%} - . HTML.
, , Django, . , , . PHP, , , , Perl, , . , , . , , :)
p.s. .