擅长:python、mysql、java
<p>我建议查看分页指南:<a href="http://www.django-rest-framework.org/api-guide/pagination/" rel="nofollow noreferrer">http://www.django-rest-framework.org/api-guide/pagination/</a></p>
<p>从该指南中:</p>
<blockquote>
<p>Pagination is only performed automatically if you're using the generic views or viewsets. If you're using a regular APIView, you'll need to call into the pagination API yourself to ensure you return a paginated response. See the source code for the mixins.ListModelMixin and generics.GenericAPIView classes for an example.</p>
</blockquote>