我面临着下面的错误 Reverse for 'yourchoice' not found.'yourchoice' is not a valid view function or pattern name. 但我在views.py中有这个函数。这是views.py的一部分 def yourchoice(request, courseId):
course = get_object_or_404(AllCourses, pk=courseIdselected_
我有一个简单的返回索引(reverse(‘HttpResponseRedirect’)),其中'index‘是视图的名称。在运行服务器时,索引视图被正确显示,但在重定向时给出了这个错误"NoReverseMatch at /vehicle_ gives /checkinview“。我所做的另一个改变是在之前的1.1项目中,索引视图url是在主url.py中编写的,但现在它是在应用程序urls.p
当我尝试运行服务器时,我得到错误消息"Reverse for 'topping‘not found. 'topping’is not a valid view function or pattern name“。第11行出错10 <a href="{% url 'pizza:pizzas' %}"> Pizzas </a>-
11