Commit c46c7eeb authored by John Red Medrano's avatar John Red Medrano

custom error handler

parent 9f28ef30
...@@ -154,8 +154,8 @@ REST_FRAMEWORK = { ...@@ -154,8 +154,8 @@ REST_FRAMEWORK = {
'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',),
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
# 'EXCEPTION_HANDLER': 'rest_framework.views.exception_handler', 'EXCEPTION_HANDLER': 'rest_framework.views.exception_handler',
'EXCEPTION_HANDLER': 'app.datalayer.serializer_handler.custom_exception_handler', # 'EXCEPTION_HANDLER': 'app.datalayer.serializer_handler.custom_exception_handler',
'PAGE_SIZE': 10 'PAGE_SIZE': 10
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment