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

Metadata

Release files for django-errors 2.3.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-errors 2.3.15
File Size Uploaded
django_errors-2.3.15.tar.gz 44.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-errors 2.3.15
File Interpreter ABI Platform
django_errors-2.3.15-py3-none-any.whl Python 3 none any Details

Total release size: 76.4 kB

Release files / django_errors-2.3.15.tar.gz

Download URL django_errors-2.3.15.tar.gz
Size 44.4 kB
Tags Source
SHA-256 checksum
How to use checksums
761341cd9c68c6ab75dfd79e9677ccb631e3ed5159c27bdeb1d4a6d5cebfa866
BLAKE2b-256 checksum
How to use checksums
2e75027bd998484e792b824ce8154e252daed300211a5b9a3a4c8e2b37cb091f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / django_errors-2.3.15-py3-none-any.whl

Download URL django_errors-2.3.15-py3-none-any.whl
Size 32.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17ebe105baf14f917946ad177e52086f4e14e74bf39ccab9e41087ba4ad3ea14
BLAKE2b-256 checksum
How to use checksums
735fd7eeba0bbd23218a1d24200c0efeec73d77a833a719f3bc418b0bce2a6bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page