Рефакторинг - перенос пакета utils.drf в middleware
This commit is contained in:
@@ -37,10 +37,10 @@ REST_FRAMEWORK = {
|
||||
'djangorestframework_camel_case.parser.CamelCaseJSONParser',
|
||||
),
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': [
|
||||
'net.xeaf.rack.utils.drf.ExpiringTokenAuthentication',
|
||||
'net.xeaf.rack.middleware.ExpiringTokenAuthentication',
|
||||
'rest_framework.authentication.SessionAuthentication',
|
||||
],
|
||||
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
|
||||
'PAGE_SIZE': 10,
|
||||
'EXCEPTION_HANDLER': 'net.xeaf.rack.utils.drf.custom_exception_handler'
|
||||
'EXCEPTION_HANDLER': 'net.xeaf.rack.middleware.custom_exception_handler'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user