Simple Redirects App, which is particularly useful in the cases where you want to update some existing URLs without compromising your Website SEO.
Project description
Simple Redirects App, which is particularly useful in the cases where you want to update some existing URLs without compromising your Website SEO.
Installation
Install with pip:
$ pip install django-ok-redirects
Update INSTALLED_APPS:
INSTALLED_APPS = [
...
'ok_redirects',
...
]
Make migrations
$ python manage.py migrate
Available settings
REDIRECTS_IGNORE_PATH_PREFIXES - Tuple of path prefixes to ignore.
For example:
REDIRECTS_IGNORE_PATH_PREFIXES = (
'/api/v1/',
'/uploads/',
'/static/',
)
Basic example to use:
Add the redirects middleware to the MIDDLEWARE configuration:
MIDDLEWARE = [
...
'ok_redirects.middleware.RedirectMiddleware'
]
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
Built Distribution
File details
Details for the file django-ok-redirects-0.4.0.tar.gz
.
File metadata
- Download URL: django-ok-redirects-0.4.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8334b64b7a06de52935f41332c7f92052e182acb9e2cd9640fa77204c503924 |
|
MD5 | 7091cd7942f42b886733e56e54df06fe |
|
BLAKE2b-256 | 39345ee5f4c4851670f4938242d09b354dabff85b615aa9a30db5b875992bc7b |
File details
Details for the file django_ok_redirects-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: django_ok_redirects-0.4.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 640f078541cdaeedf02379f9b501d5db90f8f540e497551cf712fca1324c6663 |
|
MD5 | 4dfacbc8d861e674241fdc896c1af5c1 |
|
BLAKE2b-256 | aae1954798c4e2dfe75663e224b70bca847f908760b7502e49381082db83ff49 |