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.
![django-except-catcher Logo](/except_catcher/static/except_catcher/logo.png)
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:
```shell
pip install django-except-catcher
```
Add to urls.py:
```python
url(r'^', include('except_catcher.urls')),
```
add to settings.py:
```python
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:
```shell
./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.2' - added some styling, better navigation, docs
* v'0.0.1' - initial package
------------------------
django-except-catcher is a simple tool to catch and view exceptions in a production django website.
![django-except-catcher Logo](/except_catcher/static/except_catcher/logo.png)
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:
```shell
pip install django-except-catcher
```
Add to urls.py:
```python
url(r'^', include('except_catcher.urls')),
```
add to settings.py:
```python
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:
```shell
./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.2' - added some styling, better navigation, docs
* 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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83e5b8afa1a7c0b44dd640f3c2f58faa3f2d7febbe5497ff5386729ada51b2b3 |
|
MD5 | baadb82d8a4eac942a12af5f2b5d4cdc |
|
BLAKE2b-256 | 3d84b5a8276ee6c4c7f44ca61bec95116338ea6e19ac8c188779a29affd5cbf7 |
Close
Hashes for django_except_catcher-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06b5b3fb75d9c7682ede7d9742e4af5dede7a4d0f47c45cdcf7bb932373b900c |
|
MD5 | d068a43124e82f4d21b2c09527725204 |
|
BLAKE2b-256 | 729a61cfd550079cc1a201d20a30ca37cb1f91bdff0a634996f982361ee92c9d |