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.1.tar.gz
.
File metadata
- Download URL: drf-errors-formatter-0.1.1.tar.gz
- Upload date:
- Size: 4.1 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.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c1fea9f594812ee3aa1962b23d53eca3f6b5b37aa1229545dc1df202863118b |
|
MD5 | bcc5a6269ba3a861e50648fb0cf13c2d |
|
BLAKE2b-256 | 50835a2b0afaa7fe6761d15dc2d1869cfa5fc7954b6ecb1b7471fb861f19b21e |
File details
Details for the file drf_errors_formatter-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: drf_errors_formatter-0.1.1-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.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a50cba2d6bdac665700258d2c81835462d14627ff336fb4841660de8b850bfcf |
|
MD5 | 4aff7bf6f8fe8f4b9cc956d14f07d19f |
|
BLAKE2b-256 | 610662594a3d1521b5f910da1984868d824564c5a295da855795d9b9ab56158b |