Re: Where to import PageNumberPagination from?

31 views
Skip to first unread message

Francisco Pandol

unread,
Feb 17, 2025, 3:14:43 PMFeb 17
to django-res...@googlegroups.com
Yes I would it's a simple error that most of the courses online do. But you can easily search the solution, probably the pagination classes are in rest_framework.pagination

On Mon, Feb 17, 2025 at 3:35 PM Michael Angelozzi <mange...@gmail.com> wrote:
The docs on pagination subclass the PageNumberPagination, but they dont mention where to import it from:

https://www.django-rest-framework.org/api-guide/pagination/

I would expect it to be in the docs, wouldn't you?

Cheers!

--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/django-rest-framework/da4ba701-29a0-4146-a4bd-a33a2e854332n%40googlegroups.com.


--
Francisco Pandol
Reply all
Reply to author
Forward
0 new messages