Skip to main content


Project description

Built for use on, 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.


Add the package to your python path, pip install, 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!


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.

Files for django-redirector, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django-redirector-0.1.1.tar.gz (84.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page