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

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page