django template extends and include problem.
test case as below:
1.base.html
then,in the other.html,why I can't change the block t2?
<html>
<body>
{% block t1 %}
ttttttttttttttttttttttttttttt
{% endblock %}
</body>
</html>
2.temp.html
{% block t2 %}
<div>zzzzzzzzzzz</div>
{% endblock %}
3.index.html
{% extends "base.html" %}
{% block t1 %}
kkkkkkkkkkkkkkkkkkkkkk
{% include "temp.html" %}
{% endblock %}
4.other.html
{% extends "index.html" %}
{% block t2 %}
<div>qqqqqqqqqqqqqq</div>
{% endblock %}
how to implement this extends and modify its included block?
Thanks.
--
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home