What is a NoReverseMatch error, and how do I fix it?

前端 未结 2 691
暗喜
暗喜 2020-11-21 11:17

I have some code and when it executes, it throws a NoReverseMatch, saying:

NoReverseMatch at /my_url/ Reverse for \'my_url_name\' with arguments \'()\

2条回答
  •  清歌不尽
    2020-11-21 11:40

    And make sure your route in the list of routes:

    ./manage.py show_urls | grep path_or_name
    

    https://github.com/django-extensions/django-extensions

提交回复
热议问题