There is now a page.
base.html
data.html
index.html
Now index.html extends base and blocks base information.
Here comes the problem. How to extend data.html? Django does not support the extends 2 syntax by default.
# index.html
{% extends "base.html" %}
{% block source %}
{% extends "data.html" %}
# 如何再继承一个模板然后渲染呢?
# 如果这里 include data.html , view 传进来的context 不会生效
{% endblock %}
If you are new to Django, is it normal to need to render twice?
include with