title: How to redirect to another page that contains ID in django
body: <p>I have this function in view.py file that i pass an ID on it and it render a certain page</p>
  
  <pre><code>def more_about_child(request,pk):
      child = get_object_or_404(Child_detail,pk=pk)
      academic = Academic.objects.filter(Student_name=child)  
      context={ 
          'child':child, 
          'academic':academic,
      }
      return render(request,'functionality/more/more.html',context)
  </code></pre>
  
  <p>And this urls.py file belongs to above views.py file</p>
  
  <pre><code>from . import views
  from django.urls import path
  
  urlpatterns=[
      #more_about_child
      path('more/&lt;int:pk&gt;/',views.more_about_child,name='more'),
  ]
  </code></pre>
  
  <p>Then i have this function that i want to redirect to a page that contain an id in the above urls.py file</p>
  
  <pre><code>def add_academy(request,pk):
      child = get_object_or_404(Child_detail, pk=pk)
      academic = Academic.objects.get(Student_name=child)
      form = AcademicForm(request.POST, instance=academic)
      if form.is_valid():
          form.save()
          return redirect('more') #it fails to redirect to this url,because it contain an ID in it
      else:
          form=AcademicForm()
      context = {
          'academic':academic,
          'child':child,
          'form':form,
      }
  </code></pre>