Skip to main content

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.6+)
  • Django (2.0+)
  • 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

drf-errors-formatter-1.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

drf_errors_formatter-1.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file drf-errors-formatter-1.0.1.tar.gz.

File metadata

  • Download URL: drf-errors-formatter-1.0.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.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for drf-errors-formatter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b4e7a1c06b3560c243e48c32f82d151c8847bb202bdf8af595bf430537022e8e
MD5 a02e3e93d0425e1480f18319ae195c73
BLAKE2b-256 dbaa9e34a42ea1846b413ab236df35f6cb63c73699335a165948510662d7fc20

See more details on using hashes here.

File details

Details for the file drf_errors_formatter-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: drf_errors_formatter-1.0.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.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for drf_errors_formatter-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 92d605b7ff5c250c522301a835b88b5cc358631f69dfb60e914b4533e50bdd77
MD5 7e28842f95205856964cbf75c89c39ae
BLAKE2b-256 c1615eb9e4a9b682309c07114a5b1c2dc74903e3abd0a649ef074f12c83e4b80

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page