Simple Redirects App, which is particularly useful in the cases where you want to update some existing URLs without compromising your Website SEO.
Install with pip:
$ pip install django-ok-redirectsUpdate INSTALLED_APPS:
INSTALLED_APPS = [
...
'ok_redirects',
...
]Make migrations
$ python manage.py migrateREDIRECTS_IGNORE_PATH_PREFIXES - Tuple of path prefixes to ignore.
For example:
REDIRECTS_IGNORE_PATH_PREFIXES = (
'/api/v1/',
'/uploads/',
'/static/',
)MIDDLEWARE = [
...
'ok_redirects.middleware.RedirectMiddleware'
]