模板之导入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 %}

 

posted @ 2021-04-14 22:12  安好_世界  阅读(52)  评论(0编辑  收藏  举报