According to Django official doc, it reads,
The template system works in a two-step process: compiling (parsing template texts to
Nodes
) and rendering (renderNodes
to HTML file).
Let us take django-contrib-comments as an example, if I have below line in HTML template file,
{% render_comment_form for page %}
when and how will the BaseCommentNode.render()
(source code here) or any other Nodes' render()
be triggered? From the source code, I did not see anywhere explicitly trigger the render()
function.