NoReverseMatch at /depotapp/product/list/
Reverse for 'depotapp.views.view_product' with arguments '(1,)' and keyword arguments '{}' not found. 0 pattern(s) tried: []
Request Method: GET
Request URL: http://127.0.0.1:8000/depotapp/product/list/
Django Version: 1.6.8
Exception Type: NoReverseMatch
Exception Value:
Reverse for 'depotapp.views.view_product' with arguments '(1,)' and keyword arguments '{}' not found. 0 pattern(s) tried: []
Reverse for 'depotapp.views.view_product' with arguments '(1,)' and keyword arguments '{}' not found. 0 pattern(s) tried: []
Request Method: GET
Request URL: http://127.0.0.1:8000/depotapp/product/list/
Django Version: 1.6.8
Exception Type: NoReverseMatch
Exception Value:
Reverse for 'depotapp.views.view_product' with arguments '(1,)' and keyword arguments '{}' not found. 0 pattern(s) tried: []
Exception Location: /usr/lib/python2.6/site-packages/django
解决:
上面问题是由于,URL的配置错误、或者漏配造成的。 url.pyh中进行相应修改,或添加即可。