django 数据库html显示

template

{% autoescape off %}
{% for each in obj %}
    <h2>{{ each.food }}</h2> <br/>
    {{ each.tip }}<br/>
    {{ each.description }}<br/>
    {{ each.step }}<br/>
{% endfor %}
{% endautoescape %}

  

原文地址:https://www.cnblogs.com/pythonClub/p/9860811.html