{% if 'editors' in request.path %}
<a class="active item" href="{% url 'list' %}editors">
Editor's
</a>
{% else %}
<a class="item" href="{% url 'list' %}editors">
请求的链接提取request.path
本文介绍了一个特定于编辑器的页面导航元素,该元素根据不同条件显示为活动项或常规链接。

被折叠的 条评论
为什么被折叠?



