django-errors 
GitHub

Test

Check Demo Project
Requirements
- Python 3.9+ supported.
- Django 3.2+ supported.
Setup
- Install from pip:
pip install django-errors
- modify
settings.pyby adding the app toINSTALLED_APPS:
INSTALLED_APPS = [
# ...
"django_errors",
# ...
]
- Finally, modify your project
urls.pywith 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.14.tar.gz
(44.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_errors-2.3.14.tar.gz.
File metadata
- Download URL: django_errors-2.3.14.tar.gz
- Upload date:
- Size: 44.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad8209f79c28e73048998af74e5974a6b21a92d239e77ab39e5f3bd3219b368e
|
|
| MD5 |
b069b547b06cca90bc58140fdb383f2f
|
|
| BLAKE2b-256 |
fda7605dd2e8c529151fa4f81a9b959f97c8f33241b84ddd11d5c8744ca4b58a
|
File details
Details for the file django_errors-2.3.14-py3-none-any.whl.
File metadata
- Download URL: django_errors-2.3.14-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dd84621d4e9a84b8c8924ee3d8e8afcfd513651f13f6bc0bbe90da6897886c2
|
|
| MD5 |
93d745f9eb60a7c6611a429c74ca3f43
|
|
| BLAKE2b-256 |
2e3e8c7f51a9f4f90b8bc6e36036162a085f40af69e245e2cfbdde79d53f246e
|