Catch Exceptions in production
Project description
DJANGO EXCEPT CATCHER
-------------
django-except-catcher is a simple tool to catch and view exceptions in a production django website.
Exceptions are stored and presented in a list where you can find similar exceptions and look their html representation just like in development django's debug.
It does not require instalation of any daemon in order to work, just a regular django module.
Inspired in django's AdminMailHandler.
INSTALATION
-------------
Install django-except-catcher:
pip install django-except-catcher
Add to urls.py:
url(r'^', include('except_catcher.urls')),
add to settings.py:
INSTALLED_APPS = [
...
'except_catcher',
]
LOGGING = {
...
'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
Now go to url:
http://localhost/errors/
You can purposely throw an exception in the url:
http://localhost/test-exception/
Only the super user can access these reports.
VERSIONS:
-------------
-- v'0.0.1' - initial package
-------------
django-except-catcher is a simple tool to catch and view exceptions in a production django website.
Exceptions are stored and presented in a list where you can find similar exceptions and look their html representation just like in development django's debug.
It does not require instalation of any daemon in order to work, just a regular django module.
Inspired in django's AdminMailHandler.
INSTALATION
-------------
Install django-except-catcher:
pip install django-except-catcher
Add to urls.py:
url(r'^', include('except_catcher.urls')),
add to settings.py:
INSTALLED_APPS = [
...
'except_catcher',
]
LOGGING = {
...
'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
Now go to url:
http://localhost/errors/
You can purposely throw an exception in the url:
http://localhost/test-exception/
Only the super user can access these reports.
VERSIONS:
-------------
-- v'0.0.1' - initial package
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-except-catcher-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d22e18495c8a3e67caadf7a99c579674009ed131b1850fbac066a6c9f44b934 |
|
MD5 | 5acecc42fa947c37182a74340e5e0123 |
|
BLAKE2b-256 | 6cd41b33e0fc1b8d2fddc1e101fdd93a80f84474b498c5937367b6c2d58de011 |
Close
Hashes for django_except_catcher-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b401091166d3969eb1954edd6d5d35c90485324569486edb184ff31b681d82d |
|
MD5 | d4fcf641996c4c968174cf2bac321232 |
|
BLAKE2b-256 | b29ae5e16f0cad6084dd35b5c8be34d7e73fa21bb4200dc9f4ea34a55dc7d36e |