Skip to main content

A Django app to manage errors in your api

Project description

Django Error Codes is a Django app to manage the error in your api. For each error, you can have a description and code.

Detailed documentation is in the “docs” directory.

Quick start

  1. Install dependencies:

    pip install djangorestframework

  2. Add “error_codes” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'rest_framework',
        'error_codes',
    ]
  1. Include the errors docs URLconf in your project urls.py like this:

    path('error/', include('error_codes.urls')),
  2. Run python manage.py migrate to create the polls models.

  3. Start the development server and visit http://127.0.0.1:8000/admin/ to create a errors (you’ll need the Admin app enabled).

  4. Visit http://127.0.0.1:8000/error/docs/ to see all errors if you have errors saved in the database.

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

django-rest-error-1.2.3.tar.gz (55.4 kB view details)

Uploaded Source

File details

Details for the file django-rest-error-1.2.3.tar.gz.

File metadata

  • Download URL: django-rest-error-1.2.3.tar.gz
  • Upload date:
  • Size: 55.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for django-rest-error-1.2.3.tar.gz
Algorithm Hash digest
SHA256 af5e16ab7fc44479153cd462c9f415661d0c6756ca96555fa97d238bd37c5578
MD5 84c446a0347f8e220878b739e8ce35d8
BLAKE2b-256 669a4a2ab54901bb58591c1c58adbc673397519cf34693ba8fb3d28dc276d745

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