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

File details

Details for the file django-any-response-redirect-middleware-1.0.tar.gz.

File metadata

File hashes

Hashes for django-any-response-redirect-middleware-1.0.tar.gz
Algorithm Hash digest
SHA256 3c894f564d0444f5196e322f1284faf412a6985b3a204ee156caf12a10c2ed58
MD5 891e4db1b028d89bb0e71efe4eacdcb5
BLAKE2b-256 0180435dbc1c4212663c291736e4c57fb99c10b15e5087bcb4f93e4f060851a7

See more details on using hashes here.

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