0
我使用的是传递变量到我的观点与url
标签的使用方法:网址标签 - 希望通过可逆可变
{% load url from future %}
...
{% if notification.url %}
<a href='{% url notification.url %}'>{% notification.text %}</a>
{% endif %}
notification.url
被设置成类似post
,URL的名字我希望指出,但url不会颠倒,因为{% url 'post' %}
会。
我在做什么错?