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

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.18
File Size Uploaded Provenance Actions
django_errors-2.3.18.tar.gz 49.4 kB Without provenance Details for django_errors-2.3.18.tar.gz

Built distribution (wheel)

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

Total release size: 84.2 kB

Release files / django_errors-2.3.18.tar.gz

Download URL django_errors-2.3.18.tar.gz
Size 49.4 kB
Tags Source
SHA-256 checksum
How to use checksums
62403783436df6e5bf81f569a96aac2d93ff10608663c747cadc6ee88a605fbf
BLAKE2b-256 checksum
How to use checksums
7b9a9b1b085e0d224c53f34d22fdd6f606ac0cc119762d50d7e3cfb67796765c
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.18-py3-none-any.whl

Download URL django_errors-2.3.18-py3-none-any.whl
Size 34.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50934b070d6d0853de5946f04d6288c2035229b44baa1feba1a97e578dd0400f
BLAKE2b-256 checksum
How to use checksums
13b673e3c6f0a73624955cc1d33f2551593dd34f2b3a2c3310f296e6637256ea
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.18

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