Format errors in Django Rest Framework
Project description
DRF Errors formatter
This is a exception handlers error formating for Django REST Framework which allows you to format errors in all project.
Requirements
- Python (3.7+)
- Django (2.2+)
- djangorestframework (3.8+)
Installation
pip install drf-errors-formatter
Usage
/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'
}
Authors
2021, Thomas
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for drf-errors-formatter-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b77013f3c41f49e8be06d7480f4f30c7e17fe5f7454e0f0218da769ed17fd9df |
|
MD5 | e251b86ff59bc2890dafa8ae1707c9ec |
|
BLAKE2b-256 | 9580ad071d6f252316402f175f02519fa9c3d75734b61513c54a2c9a0ff1496c |
Close
Hashes for drf_errors_formatter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 509695fe72c5cb7f71d6ac4623307e91158f9500d95ec6856ab459f217a416bf |
|
MD5 | 5ded8f446e4be11eefa4e842dac3df2c |
|
BLAKE2b-256 | a12f45ff5f4880bc924ceedd8d1acf60c6b15a6b9b44bac09fa4d339fbfd4b57 |