setting配置 REST_FRAMEWORK = { # 配置默认页面大小 'PAGE_SIZE': 5, # 配置默认的分页类 'DEFAULT_PAGINATION_CLASS': 'api.helpers.CustomPagination',