UNKNOWN
Project description
Built for use on grovemade.com, Django Redirector adds simple admin powered 301 redirects.
Example rules:
Path: /foo/bar/ Type: exact (case insensitive)
Path: /products/ Type: startswith
Uses caching heavily because the middleware is called on every request.
redirect rules are cached once
redirect results are cached per request path
Cache is invalidated when a new rule is saved/added.
Installation
Add the package to your python path, pip install, setup.py install, etc.
Add ‘django_redirects’ to INSTALLED_APPS
Add ‘django_redirects.middleware.RedirectMiddleware’ immediately after CommonMiddleware in MIDDLEWARE_CLASSES
Syncdb, then navigate to your admin panel!
Settings
REDIRECT_CACHE_TIME: _default: 60*30_ Seconds to cache individual page redirect results.
Project details
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-redirector-0.1.2.tar.gz
.
File metadata
- Download URL: django-redirector-0.1.2.tar.gz
- Upload date:
- Size: 172.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65b345b46bf7b3446cdf8ced31c53856dc7b999f5b924926c49229bba97c746d |
|
MD5 | eb7bc91ac171e3312f0372d7859bc9d1 |
|
BLAKE2b-256 | e253c5caa77392c56f4e7238bec1c35dea53eab45bbafeeb8ff5cc01c07ad935 |