{% url %} gives me NoReverseMatch error while reverse() returns the url just fine. Why?

前端 未结 1 1133
走了就别回头了
走了就别回头了 2021-02-06 06:10

I don\'t know if this SO question is of the same problem that I am about to describe, but it does share the same symptoms. Unfortunately, it still remains unresolved as I am wri

相关标签:
1条回答
  • 2021-02-06 06:39

    I'm no expert here, but in a Django project I'm working on at the moment I use the name of the url without quotes. I just added quotes around a similar line in one of my templates and it produced the same error as your error.

    Try:

    {% url testing item_id=123 %}
    
    0 讨论(0)
提交回复
热议问题