Django: how to set pagination in resfulapi?
问题 here i tried django default pagination in my views, query works perfectly but pagination does not work for me. what should i do? i guess i have to make a custom pagination as per my code. it would be great if anybody could help me where i made mistake in my code. from rest_framework.pagination import PageNumberPagination class DefaultResultsSetPagination(PageNumberPagination): page_size = 2 page_size_query_param = 'page_size' max_page_size = 100000 class Order_ListAPIView(APIView): pagination