title: how to create a dynamic url in python (apiview,django)?
body: <p>I want to dynamically add an id to an urlpattern and print that id to my server. for example on <a href="http://127.0.0.1:8000/experience/3" rel="nofollow noreferrer">http://127.0.0.1:8000/experience/3</a> I want to print 3 to my server.</p>
  
  <pre><code>from django.contrib import admin
  from django.urls import path,include
  from core.views import TestView
  from core.views import ExperienceView
  from core.views import ProjectView
  from rest_framework.authtoken.views import obtain_auth_token
  
  urlpatterns = [
  
      path('experience/&lt;str:id&gt;', ExperienceView.as_view(),name='experience'),
  
  ]
  </code></pre>
  
  <pre><code>class ExperienceView(APIView):
      ...
      def delete(self,request,*args,**kwargs,id):
          connection = sqlite3.connect('/Users/lambda_school_loaner_182/Documents/job-search-be/jobsearchbe/db.sqlite3')
          cursor = connection.cursor()
          req = request.data
          print(id)
          return Response(data)
  
  </code></pre>