1.报错:Reverse for 'carprice-url' with arguments '(0,)' not found. 1 pattern(s) tried: ['carprice/$'](根据python新手学Django2架站的16堂课--第六章学的)
2.改变<'carprice/'<int:maker>>显示失败
3.path('carprice/', carprice, name = 'carprice-url'),
1.报错:Reverse for 'carprice-url' with arguments '(0,)' not found. 1 pattern(s) tried: ['carprice/$'](根据python新手学Django2架站的16堂课--第六章学的)
2.改变<'carprice/'<int:maker>>显示失败
3.path('carprice/', carprice, name = 'carprice-url'),
path('carprice/', carprice, name = 'carprice-url')这个路由没有设置路由变量,你改为path('carprice/<int:maker>', carprice, name = 'carprice-url')试试,如果是入门,可以看看这本书:https://item.jd.com/12604813.html?dist=jd,入门知识挺详细的
如果对你有帮助,可以点击我这个回答右上方的【采纳】按钮,给我个采纳吗,谢谢