Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


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.

Release History

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-redirector-0.1.3.tar.gz (347.0 kB) Copy SHA256 Checksum SHA256 Source Jun 13, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting