title: whilw performing CURD operation i got error. Using the URLconf defined in Student.urls, Django tried these URL patterns, in this order:
body: <p>Using the URLconf defined in Student.urls, Django tried these URL patterns, in this order:
  admin/
  emp [name='emp']
  show [name='show']
  edit/int:roll_no [name='edit']
  update/int:roll_no [name='update']
  delete/int:roll_no [name='delete']
  The current path, update/, didn’t match any of these.
  While Performing django CURD operation I got above error..</p>
  <p>my code from main( student urls.py):-</p>
  <pre><code>from django.contrib import admin
  from django.urls import path, include
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('', include('stud_details.urls'))
  </code></pre>
  <p>from app stud_details(urls.py)</p>
  <pre><code>from stud_details import views
  urlpatterns = [
      path('',views.index),
      path(&quot;emp&quot;,views.emp, name='emp'),
      path(&quot;show&quot;,views.show, name='show'),
      path(&quot;edit/&lt;int:roll_no&gt;&quot;,views.edit, name='edit'),
      path(&quot;update/&lt;int:roll_no&gt;&quot;,views.update, name='update'),
      path(&quot;delete/&lt;int:roll_no&gt;&quot;,views.destroy, name='delete')
  </code></pre>
  <p>from views.py:</p>
  <pre><code>from stud_details.forms import Stud_form
  from stud_details.models import Stud_class    
  
   def emp(request):  
      if request.method == &quot;POST&quot;:  
          form = Stud_form(request.POST)  
          if form.is_valid():  
              try:  
                  form.save()  
                  return redirect('/show')  
              except:  
                  pass  
      else:  
          form = Stud_class()  
      return render(request,'index.html',{'form':form})    
  
  def show(request):  
      students = Stud_class.objects.all()  
      return render(request,&quot;show.html&quot;,{'students':students})        
  
  def index(request):  
      return render(request,&quot;index.html&quot;)      
  
  def edit(request, roll_no):  
      students = Stud_class.objects.get(roll_no=roll_no)  
      return render(request,'edit.html', {'students':students})  
  
  def update(request, roll_no):  
      students = Stud_class.objects.get(roll_no=roll_no)
      form = Stud_form(request.POST, instance = students)
      if form.is_valid():  
          form.save()  
          return redirect(&quot;/show&quot;)  
          return render(request, 'edit.html', {'Stud_class': employee})  
  
  def destroy(request, roll_no):  
      students = Stud_class.objects.get(roll_no=roll_no)  
      students.delete()  
      return redirect(&quot;/show&quot;)  
  </code></pre>
  <p>What I'm doing wrong</p>