Skip to main content

Fetch pictures from http.cat as error pages

Project description

# Django http.cat
#### This tiny library lets you easily return pictures from http.cat in case of error (404, 500, etc)

## Installation
Just use pip

pip install django-http-cat
> Not yet on Pypi, wait for tomorrow...

## Configuration
Simple add the middleware your django ```MIDDLEWARE_CLASSES``` setting.
```
MIDDLEWARE_CLASSES = [
...
'httpcat.middleware.HttpCatErrorHandler'
]
```
You don't need to include it in your ```INSTALLED_APPS```

You can specify which status codes it should ignore by setting ```HTTP_OK_CODES``` to a list of integers with the codes to ignore (default if 200 and 304)

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-http-cat-0.1.zip (3.2 kB view hashes)

Uploaded Source

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