title: django rest framework find url kwarg in APIView
body: <p>I have a url that looks like this:</p>
  
  <pre><code>url(r'^client_profile/address/(?P&lt;id&gt;.+)/$', views.ClientProfileAddressView.as_view())
  </code></pre>
  
  <p>And an APIView:</p>
  
  <pre><code>class ClientProfileAddressView(APIView):
  
      renderer_classes = (JSONRenderer,)
      permission_classes = (IsAuthenticated,)
  
      def put(self, request):
            ....
  
      def get(self, request):
            ....
  </code></pre>
  
  <p>In both <code>put</code> and <code>get</code>, I need to access the <code>id</code> url kwarg, the first one to update the object, the second to update it. How can I access the url argument in those methods?</p>