Groups
Groups
Sign in
Groups
Groups
Django REST framework
Conversations
About
Send feedback
Help
Pagination In APIView.
377 views
Skip to first unread message
Rishabh Jain
unread,
Nov 13, 2016, 5:27:15 AM
11/13/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django REST framework
Can anyone explain how to do pagination in class inherited from APIView , so as to retuen next, count, previous , results value.
Thank you.
Xavier Ordoquy
unread,
Nov 14, 2016, 5:17:36 AM
11/14/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django REST framework
The pagination is explained at
http://www.django-rest-framework.org/api-guide/pagination/#pagenumberpagination
and the configuration on a per view basis is in the second part of
http://www.django-rest-framework.org/api-guide/pagination/#setting-the-pagination-style
Regards,
Xavier Ordoquy,
Linovia.
Reply all
Reply to author
Forward
0 new messages