Skip to main content

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


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

django-except-catcher-0.0.2.tar.gz (30.8 kB view hashes)

Uploaded Source

Built Distribution

django_except_catcher-0.0.2-py3-none-any.whl (32.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page