title: Pass a URL as parameter in Django Urls
body: <p>I'm working on a Django(2) project in which I need to pass an URL as a parameter in a Django URL, 
  Here's what i have tried:</p>
  
  <p><strong>urls.py:</strong></p>
  
  <pre><code>urlpatterns = [
  path('admin/', admin.site.urls),
  url(r'^api/(?P&lt;address&gt;.*)/$', PerformImgSegmentation.as_view()),
  ]
  </code></pre>
  
  <p><strong>views.py:</strong></p>
  
  <pre><code>class PerformImgSegmentation(generics.ListAPIView):
      def get(self, request, *args, **kwargs):
          img_url = self.kwargs.get('address')
          print(img_url)
          print('get request')
      return 'Done'
  </code></pre>
  
  <p>But it doesn't work, I have passed an argument with the name as <code>address</code> via postman, but it failed.
  It returns this error:</p>
  
  <blockquote>
    <p>Not Found: /api/
    [05/Sep/2018 15:28:06] "GET /api/ HTTP/1.1" 404 2085</p>
  </blockquote>