完全跟踪: django.urls.exceptions.NoReverseMatch:用关键字参数“{‘s’:'legume'}‘找不到'product_list_by_category’。1模式尝试:'(?P\w+)/$‘"GET /HTTP1.1“500 180670from django.conf.urls import url, include
from django.contrib<em
我尝试了所有关于堆栈溢出的问题和答案,并且读写和重写了我的模板,但是我不断地得到错误“product_list_by_category”与参数(‘book’,)和关键字参数'{}‘没有找到。1模式尝试了:[’shop/(?P-\\W+)/$‘]。完整的痕迹在这里:
NoReverseMatch at /shop/反向表示“p