Created
June 11, 2021 03:51
-
-
Save daviwesley/60c323c6572d13f9022903ab10c1df5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REST_FRAMEWORK = { | |
"PAGE_SIZE": 50, | |
"COERCE_DECIMAL_TO_STRING": False, | |
"DEFAULT_PAGINATION_CLASS": "common.paginators.CustomPagination", | |
"DEFAULT_FILTER_BACKENDS": [ | |
"django_filters.rest_framework.DjangoFilterBackend", | |
"rest_framework.filters.OrderingFilter", | |
], | |
"DEFAULT_AUTHENTICATION_CLASSES": [ | |
"rest_framework_simplejwt.authentication.JWTAuthentication", | |
], | |
"DEFAULT_PERMISSION_CLASSES": [ | |
"rest_framework.permissions.IsAuthenticated", | |
], | |
"DEFAULT_RENDERER_CLASSES": ( | |
"djangorestframework_camel_case.render.CamelCaseJSONRenderer", | |
"djangorestframework_camel_case.render.CamelCaseBrowsableAPIRenderer", | |
), | |
"DEFAULT_PARSER_CLASSES": ( | |
"djangorestframework_camel_case.parser.CamelCaseFormParser", | |
"djangorestframework_camel_case.parser.CamelCaseMultiPartParser", | |
"djangorestframework_camel_case.parser.CamelCaseJSONParser", | |
), | |
} | |
handler500 = "rest_framework.exceptions.server_error" | |
handler400 = "rest_framework.exceptions.bad_request" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment