好吧,我有我的index.html文件,其中有一個名爲info.html的文件,它從index.html文件中擴展出來,但目前不太適用。這裏是我的代碼:Django擴展模板問題
的index.html
<body>
{% include "home/quote.html" %}
{% include "home/intro.html" %}
{% block content %}
{% endblock %}
{% include "home/projects.html" %}
{% include "home/goals.html" %}
</body>
info.html裏
{% extends "home/index.html" %}
{% block content %}
<section class="info-section">
<div class="info-section_content">
{% include "home/includes/info-content.html" %}
</div>
</section>
{% endblock %}
不行嗎?你怎麼渲染這個? –