Django Error Views

https://badge.fury.io/py/django-error-views.svg https://travis-ci.org/wooyek/django-error-views.svg?branch=master https://codecov.io/gh/wooyek/django-error-views/branch/master/graph/badge.svg

Verbose error views with minimal context fo Django

Documentation

The full documentation is at https://django-error-views.readthedocs.io.

Quickstart

Install Django Error Views:

pip install django-error-views

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'django_error_views.apps.DjangoErrorViewsConfig',
    ...
)

Add Django Error Views’s handlers to your project url.py:

from django_error_views.handlers import *

Features

This app sets Django error handlers with sensible defaults that will have some context with them:

  • error message
  • support email
  • status_code
  • request
  • sentry_public_dsn - optional

This will help to render error pages that are usable to something more that render a static error message. Run an example to see how it works.

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package: