Skip to main content

django-errors PyPi license

PyPi status PyPi version PyPi python version PyPi downloads PyPi downloads PyPi downloads

GitHub GitHub release GitHub release

Test codecov.io pre-commit.ci status gitthub.com

Check Demo Project

  • Browser the demo app on-line on Heroku
  • Check the demo repo on GitHub

Requirements

  • Python 3.9+ supported.
  • Django 3.2+ supported.

Setup

  1. Install from pip:
pip install django-errors
  1. modify settings.py by adding the app to INSTALLED_APPS:
INSTALLED_APPS = [
    # ...
    "django_errors",
    # ...
]
  1. Finally, modify your project urls.py with handlers for all errors:
# ...other imports...
from django_errors import views as errors_views

urlpatterns = [
    # ...other urls...
]

handler400 = errors_views.custom_400
""" Handle 400 error """

handler403 = errors_views.custom_403
""" Handle 403 error """

handler404 = errors_views.custom_404
""" Handle 404 error """

handler500 = errors_views.custom_500
""" Handle 500 error """

Run Example Project

git clone --depth=50 --branch=django-errors https://github.com/DLRSP/example.git DLRSP/example
cd DLRSP/example
python manage.py runserver

Now browser the app @ http://127.0.0.1:8000

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_errors-2.3.15.tar.gz (44.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_errors-2.3.15-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

Details for the file django_errors-2.3.15.tar.gz.

File metadata

  • Download URL: django_errors-2.3.15.tar.gz
  • Upload date:
  • Size: 44.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_errors-2.3.15.tar.gz
Algorithm Hash digest
SHA256 761341cd9c68c6ab75dfd79e9677ccb631e3ed5159c27bdeb1d4a6d5cebfa866
MD5 af60177cf0e1e1cf03adac9b8f714bec
BLAKE2b-256 2e75027bd998484e792b824ce8154e252daed300211a5b9a3a4c8e2b37cb091f

See more details on using hashes here.

File details

Details for the file django_errors-2.3.15-py3-none-any.whl.

File metadata

  • Download URL: django_errors-2.3.15-py3-none-any.whl
  • Upload date:
  • Size: 32.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_errors-2.3.15-py3-none-any.whl
Algorithm Hash digest
SHA256 17ebe105baf14f917946ad177e52086f4e14e74bf39ccab9e41087ba4ad3ea14
MD5 8913ed217727654a795cbf72aa75acbd
BLAKE2b-256 735fd7eeba0bbd23218a1d24200c0efeec73d77a833a719f3bc418b0bce2a6bb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.3.15 This release

2 files

2.3.14

2 files

2.3.13

2 files

2.3.12

2 files

2.3.11

2 files

2.3.10

2 files

2.3.9

2 files

2.3.5

2 files

2.3.4

2 files

2.3.2

2 files

2.3.0

2 files

2.1.0

2 files

1.6.8

2 files

1.6.7

2 files

1.6.6

2 files

1.5.5

6 files

1.5.3

3 files

1.5.2

3 files

0.13.0

3 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page