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.10.tar.gz (44.0 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.10-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_errors-2.3.10.tar.gz
  • Upload date:
  • Size: 44.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_errors-2.3.10.tar.gz
Algorithm Hash digest
SHA256 f51c40dcbe431aa132892d9ef3ddf36b753dfa7e447c667bca4ed927639b3129
MD5 f3b4d433c538b30edcb7a685feba498a
BLAKE2b-256 725ba7d12bfee0dbee9468e99c895d7305242ba0b2615aeb1cd59cbf3ebca1c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_errors-2.3.10-py3-none-any.whl
  • Upload date:
  • Size: 33.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_errors-2.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8efef77a19ac7d0c7d6a9f2618e65c054dd53847460fd6dd05480d294fe6d947
MD5 1e28f1447e3498a4435583b8911e2018
BLAKE2b-256 15a7f99b61f9adfec806cc7e5c63ffb2dc88b39630c5160997beefac46bc807a

See more details on using hashes here.

Supported by

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