i have this code in my template:
{% for i in var %}
{% for action in actions %}
<li>
<a href="{% url action.url_alias %}">{{ action.name_short }}</a>
</li>
{% endfor %}
the value of action.url_alias is 'user-edit'
i.id host 'account' ,that's what i want from table,i use django-hosts in my project,the error is that:
Reverse for ''user-edit' i.id host 'account'' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
but when i use the value 'user-edit'
i.id host 'account' directly in {%%} like this {% url 'user-edit'
i.id host 'account' %},that's ok.
the
i.id is one of another for loop's value.how can i do this,thanks for help.