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 %}

  

posted @ 2018-10-27 12:35  CrossPython  阅读(971)  评论(0编辑  收藏  举报