模板之导入include

include导入模板

<form>
    <input type="text">
    <input type="submit">
</form>
{% extends 'master.html' %}

{% block title %}你猜{% endblock %}
{% block content %}
    <h1>用户管理</h1>
    <ul>
        {% for i in u %}
             <li>{{ i }}</li>
        {% endfor %}



    </ul>
    {% include 'tag.html' %}
    {% include 'tag.html' %}
    {% include 'tag.html' %}
{% endblock %}
原文地址:https://www.cnblogs.com/anhao-world/p/14660183.html