I am trying to create a Django API for a list with pagination but have this error
TypeError: Object of type \'Page\' is not JSON serializable
If anyone using Django Rest Framework (DRF) finds this, DRF serializers can serialize page.object_list to JSON. Of course, the better way is to specify pagination_class in DRF view(set)s: https://www.django-rest-framework.org/api-guide/pagination/
page.object_list
pagination_class