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
File details
Details for the file drf-errors-formatter-0.1.0.tar.gz
.
File metadata
- Download URL: drf-errors-formatter-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b77013f3c41f49e8be06d7480f4f30c7e17fe5f7454e0f0218da769ed17fd9df |
|
MD5 | e251b86ff59bc2890dafa8ae1707c9ec |
|
BLAKE2b-256 | 9580ad071d6f252316402f175f02519fa9c3d75734b61513c54a2c9a0ff1496c |
File details
Details for the file drf_errors_formatter-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: drf_errors_formatter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 509695fe72c5cb7f71d6ac4623307e91158f9500d95ec6856ab459f217a416bf |
|
MD5 | 5ded8f446e4be11eefa4e842dac3df2c |
|
BLAKE2b-256 | a12f45ff5f4880bc924ceedd8d1acf60c6b15a6b9b44bac09fa4d339fbfd4b57 |