Skip to main content

A subclass of Django's RedirectFallbackMiddleware that will catch any response code, not just 404s.

Project description

A subclass of Django’s RedirectFallbackMiddleware that will catch any response code, not just 404s.

Installation:

pip install django-any-response-redirect-middleware

Setup:

MIDDLEWARE = [
    ...middleware classes,
    'any_response_redirect_middleware.AnyResponseCodeRedirectMiddleware',
]

Run tests:

./manage.py test any_response_redirect_middleware.tests

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-any-response-redirect-middleware, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size django-any-response-redirect-middleware-1.0.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page