我正在尝试使用模板影响项目列表,{% with %}{% endwith %}
但在我的变量中仍然一无所获这是代码
{% for item in data %}
<tr>
{% with value = item.user_id %}
{% endwith %}
<td><a href="{% url accounts value %}"><center>{{ item.Company_name }}</center></a></td>
我得到这个错误
NoReverseMatch at /filter/
Reverse for '' with arguments '('',)' and keyword arguments '{}' not found.