DJANGO EXCEPT CATCHER
django-except-catcher is a simple tool to catch and store exceptions and 500 errors in production django applications.
When a 500 error happens a record with the details is stored in the database.
Exceptions are stored and listed so you can find similar errors and look their "yellow error page", just like in django's debug mode.
It doesn't require to run any daemon in order to work, just install a regular django module.
Inspired by django's AdminMailHandler.
For an example out of the box, take a look here.
INSTALLATION
Install django-except-catcher:
pip install django-except-catcher
Add to urls.py:
path('', include(('except_catcher.urls', 'except_catcher'), namespace="except_catcher"))
add to settings.py:
INSTALLED_APPS = [
...
'except_catcher',
]
LOGGING = {
'version': 1,
'handlers': {
'error_catcher': {
'level': 'ERROR',
'class': 'except_catcher.handlers.CatchExceptionHandler',
},
},
'loggers': {
'django.request': {
'handlers': [ 'error_catcher'],
'level': 'ERROR',
'propagate': False,
},
}
}
run migrations:
./manage.py migrate except_catcher
You can purposely throw an exception in the url (must be superuser):
http://localhost:8000/test-exception/
Now go to url:
http://localhost:8000/errors/
Only the superuser have access to these reports.
Metadata
Release files for django-except-catcher 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-except-catcher-1.0.1.tar.gz | 32.5 kB | Without provenance | Details for django-except-catcher-1.0.1.tar.gz |
Release files / django-except-catcher-1.0.1.tar.gz
| Download URL | django-except-catcher-1.0.1.tar.gz |
|---|---|
| Size | 32.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf5b3f22476a48639a4ae169683fbda39d6ca8e1db3cc0eda3cd6495010658d1
|
|
BLAKE2b-256 checksum How to use checksums |
87776dd9026457b98367fd0af4e4f459d1a57bd3026bf4b0e2b7d553d8e4b64f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
|
Security for django-except-catcher 1.0.1
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.