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
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
- Download URL: django-any-response-redirect-middleware-1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c894f564d0444f5196e322f1284faf412a6985b3a204ee156caf12a10c2ed58 |
|
MD5 | 891e4db1b028d89bb0e71efe4eacdcb5 |
|
BLAKE2b-256 | 0180435dbc1c4212663c291736e4c57fb99c10b15e5087bcb4f93e4f060851a7 |