title: How can i use limit offset pagination for viewsets
body: <p>Views.py</p>
  
  <pre><code>class CountryViewSet(viewsets.ViewSet):   
      serializer_class = CountrySerializer
      pagination_class = LimitOffsetPagination
      def list(self,request):
          try:
              country_data = Country.objects.all()
              country_serializer = CountrySerializer(country_data,many=True)
              return Response(            
                  data = country_serializer.data,
                  content_type='application/json',            
                  )
          except Exception as ex:
              return Response(
                  data={'error': str(ex)},
                  content_type='application/json',
                  status=status.HTTP_400_BAD_REQUEST
                  )
  </code></pre>
  
  <p>Settings.py
  i have added </p>
  
  <pre><code>'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
  </code></pre>
  
  <p>in my urls.py</p>
  
  <pre><code>router = routers.DefaultRouter(trailing_slash=False)
  
  router.register(r'country', CountryViewSet, base_name='country')
  urlpatterns = [
      url(r'^', include(router.urls)),
  ]
  </code></pre>
  
  <p>When I try with this URL <a href="http://192.168.2.66:8001/v1/voucher/country" rel="nofollow noreferrer">http://192.168.2.66:8001/v1/voucher/country</a> it is returning all data.</p>
  
  <p>But when I am trying with this URL <a href="http://192.168.2.66:8001/v1/voucher/country/?limit=2&amp;offset=2" rel="nofollow noreferrer">http://192.168.2.66:8001/v1/voucher/country/?limit=2&amp;offset=2</a></p>
  
  <p>but it is returning 404 error.
  I am new to django.kindly help me :)</p>