嗨,我正在努力使用html模板中的大于号。我使用的是Python3.7.2和Django1.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 救命啊
目前没有回答
相关问题 更多 >
编程相关推荐