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.

Source Distribution

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