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.1.tar.gz (55.3 kB view hashes)

Uploaded Source

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