Add rest pagination
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
- 'djangorestframework_camel_case.render.CamelCaseJSONRenderer', # Any other renders,
+ # 'djangorestframework_camel_case.render.CamelCaseJSONRenderer', # Any other renders,
'rest_framework.renderers.BrowsableAPIRenderer',
),
- 'DEFAULT_PARSER_CLASSES': (
- 'djangorestframework_camel_case.parser.CamelCaseJSONParser', # Any other parsers
- ),
+ # 'DEFAULT_PARSER_CLASSES': (
+ # 'djangorestframework_camel_case.parser.CamelCaseJSONParser', # Any other parsers
+ # ),
'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.NamespaceVersioning',
@@ -27,5 +27,8 @@ REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.TokenAuthentication',
- )
+ ),
+
+ 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
+ 'PAGE_SIZE': 30
}
