title: Django 1.11.15 and query string parameters
body: <p>I am trying to query from django  i.e  <a href="http://localhost:8000/search/Tesco/apples" rel="nofollow noreferrer">http://localhost:8000/search/Tesco/apples</a> to get a query of json list, the one below. </p>
  
  <pre><code>[
      {
          "id": 12,
          "Date": "2018-08-02",
          "Title": "Rosedene Farms Small Sweet Apple 520G",
          "Price": 0.96,
          "PricePerWeight": "1.85/kg",
          "FinalOffer": "undefined undefined",
          "ProductID": 292249576
      },
  </code></pre>
  
  <p>My urls.py:</p>
  
  <pre><code>from django.conf.urls import url, include
  from . import views
  from rest_framework import routers
  
  router = routers.DefaultRouter()
  router.register('Tesco', views.TescoView)
  
  urlpatterns = [
      url('', include(router.urls), name='search'),
      url(r'^search/', include(router.urls), name='searchTwo')
  </code></pre>
  
  <p>my views.py</p>
  
  <pre><code>from __future__ import unicode_literals
  
  from django.shortcuts import render
  from rest_framework import viewsets
  from .models import Tesco
  from .serializers import TescoSerializers
  from django.core.urlresolvers import reverse_lazy, reverse
  
  
  class TescoView(viewsets.ModelViewSet):
  
      queryset = Tesco.objects.filter(Title__icontains='apple')
      serializer_class = TescoSerializers
  </code></pre>
  
  <p>how would I get the URL  <a href="http://localhost:8000/search/tesco/" rel="nofollow noreferrer">http://localhost:8000/search/tesco/</a> to query through the database for the list of json?</p>