django-errors is a Django application for handling server errors.
Project description
django-errors
GitHub
Test
Check Demo Project
Requirements
- Python 3.6 to 3.10 supported.
- Django 2.2 to 4.0 supported.
Setup
- Install from pip:
pip install django-errors
- modify
settings.py
by adding the app toINSTALLED_APPS
:
INSTALLED_APPS = [
# ...
"django_errors",
# ...
]
- 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
Project details
Release history Release notifications | RSS feed
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-0.11.4.dev0.tar.gz
(29.0 kB
view hashes)
Built Distributions
Close
Hashes for django-errors-0.11.4.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9eb022983c9a75e8ad04a9603d59164f5f3d0050a6e4504a989961939d8765a |
|
MD5 | 555d7c68b2cc5509254fc601d9b97662 |
|
BLAKE2b-256 | b4343bbd6e88a57d21dd1ca86c9d086d84167208e0a5186c304a136c20961dda |
Close
Hashes for django_errors-0.11.4.dev0-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | c343caeb63cf14fe0c76c70ca98066a97f368ec57ed97cf96671f9c3b88c83cb |
|
MD5 | 7ca3562b778b43e98d0695ca87779286 |
|
BLAKE2b-256 | fe88b025fb15405afc2533f11a620879710efddcabd6cde75f8d33e258f7e078 |
Close
Hashes for django_errors-0.11.4.dev0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd426aac4409250766e593c95323ae58aa1dafd83f91c529cb9c39646cc442d6 |
|
MD5 | 9f69b054a2ce9aa677085f49cb83e53e |
|
BLAKE2b-256 | b4247baa321dec97e077314d17e9ca0d1e931b64c80596e86f49a94bab8b3fb4 |