Reverse for 'studentdetail' not found. 'studentdetail' is not a valid view function or…
Jump to turn (8)
- 1Reverse for 'studentdetail' not found. 'studentdetail' is not a valid view funct
- 2Student List Student List {% for student in students %} {{ student }} Edit Delet
- 3Student List Student List {% for student in students %} {{ student }} Edit Delet
- 4from django.shortcuts import render, redirect, getobjector404 from .models impor
- 5from django.urls import path from .views import studentdetail, studentlist, stud
- 6Reverse for 'studentdetail' not found. 'studentdetail' is not a valid view funct
- 7now after saving it is not redirecting home page student list here it is staying
- 8everything is working good ut
- User
Reverse for 'student_detail' not found. 'student_detail' is not a valid view function or pattern name.
- Assistant
It seems like you're having trouble with a Django URL pattern. The error message suggests that the view function or pattern name 'student_detail' is not found in your URL configuration. Here are a few things you can check:
-
Make sure that the view function is defined correctly in your views.py file. It should be a function-based view or a class-based view.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.