Pagination

Pagination allows you to control how many objects per page are returned. To enable it add the following lines to tutorial/settings.py

  1. REST_FRAMEWORK = {
  2. 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
  3. 'PAGE_SIZE': 10
  4. }