|
|
@ -146,7 +146,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
|
|
|
REST_FRAMEWORK = {
|
|
|
|
REST_FRAMEWORK = {
|
|
|
|
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',
|
|
|
|
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',
|
|
|
|
'EXCEPTION_HANDLER': 'conf.exceptions.core_exception_handler',
|
|
|
|
'EXCEPTION_HANDLER': 'conf.exceptions.core_exception_handler',
|
|
|
|
# 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
|
|
|
|
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
|
|
|
|
'PAGE_SIZE': 30,
|
|
|
|
'PAGE_SIZE': 30,
|
|
|
|
'NON_FIELD_ERRORS_KEY': 'error',
|
|
|
|
'NON_FIELD_ERRORS_KEY': 'error',
|
|
|
|
'DEFAULT_AUTHENTICATION_CLASSES': (
|
|
|
|
'DEFAULT_AUTHENTICATION_CLASSES': (
|
|
|
|