{% extends "base.html" %} 继承,必须放在首行
{% block content %} {% endblock %} 模板和子板都要写
{{ block.super }} 拿到模板的内容
块越多越好,扩展性强
{% load staticfiles %} {% include "test.html" %} 添加模板内容
{% extends "base.html" %} 继承,必须放在首行
{% block content %} {% endblock %} 模板和子板都要写
{{ block.super }} 拿到模板的内容
块越多越好,扩展性强
{% load staticfiles %} {% include "test.html" %} 添加模板内容
转载于:https://www.cnblogs.com/jintian/p/11161210.html