how to get pagination to work?

1 view
Skip to first unread message

chefsmart

unread,
Mar 14, 2009, 2:20:10 AM3/14/09
to Django REST interface
Hi all,

I have been trying out django_restapi and am really excited about the
prospects. I am having trouble with something very basic: -

Let's say I have 35 instances of a model and I'm using paginate_by =
10

What URL do I need to use to see the second and third pages of the
results?

Thanks.

chefsmart

unread,
Mar 14, 2009, 6:32:00 AM3/14/09
to Django REST interface
Yeah so I re-checked the code and it's fairly easy. One just needs to
pass an attribute-value pair in the form of page=n in the HTTP GET
request for the URL.

For example, http://127.0.0.1:8000/api/states/?page=2
Reply all
Reply to author
Forward
0 new messages