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.17

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.17
File Size Uploaded Provenance Actions
django_errors-2.3.17.tar.gz 48.7 kB Without provenance Details for django_errors-2.3.17.tar.gz

Built distribution (wheel)

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

Total release size: 83.6 kB

Release files / django_errors-2.3.17.tar.gz

Download URL django_errors-2.3.17.tar.gz
Size 48.7 kB
Tags Source
SHA-256 checksum
How to use checksums
785986712e9ede182378b07a6efe6f972ea0eb074359d82c9570444405fe2151
BLAKE2b-256 checksum
How to use checksums
c422468c72a5bb82877374e2a804398a56b7dc84216e1bbeb53683c392d80c90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL django_errors-2.3.17-py3-none-any.whl
Size 34.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
200ea982314bca1921653fff428ae71eca4ee96c2bfc0f1eff436d7957996fcb
BLAKE2b-256 checksum
How to use checksums
f56e2656f9f4cdf43a3029aa792d2aaa1eb7d4bd8df3c4dc68d412981a288084
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for django-errors 2.3.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.3.17 This release

2 release files No provenance

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