This is a exception handlers error formating for Django REST Framework which allows you to format errors in all project.
- Python (3.6+)
- Django (2.0+)
- djangorestframework (3.8+)
pip install drf-errors-formatter /home/thomas/Desktop/drf-errors-formatter/drf_handlers/formatter.py Add formatter to DRF settings
REST_FRAMEWORK = { 'EXCEPTION_HANDLER': 'drf_handlers.formatter.errors_exception_handler' } 2021, Thomas