skip to navigation
skip to content

Not Logged In

django-redirector 0.1.3

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.

  1. redirect rules are cached once
  2. 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.

 
File Type Py Version Uploaded on Size
django-redirector-0.1.3.tar.gz (md5) Source 2012-06-13 338KB
  • Downloads (All Versions):
  • 18 downloads in the last day
  • 61 downloads in the last week
  • 358 downloads in the last month