如何在python django中使用html内的小于或大于符号

时间:2019-03-29 07:31:56

标签: python html django filefield

您好吗?我正在html模板中使用大于号。我正在使用python 3.7.2和Django 1.8.6 我无法在此处执行此代码给出错误

{% extends "base.html" %}
{% block Content %}
<h1>Tags</h1>
{% for instance in object_list %}
    <li><a href='{{ instance.get_absolute_url }}'>{{ instance.title }}</a> ({{ instance.products.count }} product{% if instance.products.count > 1 %}s{% endif %})</li>
{% empty %}
    <li>No Tags yet.</li>
{% endfor %}
</ul>

{% endblock %}

所以> 1是这里的问题 帮忙

0 个答案:

没有答案