As far as I know, blocks and variables are different in django. If you want to pass the name as a context variable, you must set it using the declaration in base.html, for example:
{% include "header.html"%}
Which, in turn, contains:
{% block title %} {{title}} {%endblock%}
You can also install it at home. {% block title%} Homepage {% endblock%} But I'm also trying to set in the context of the template. Without title block.
def test_view(ctx):
xa = { "title":"Sommaire"}
return render_to_response("test.html",xa)
I think you can also see the template tag with, I think you can set the context variable using this tag.
source
share