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

template

 

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

  

本文标题为:django 数据库html显示

基础教程推荐