Django redirects, with regular expressions
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
regex_redirects
.coveragerc
.gitignore
.travis.yml
LICENSE
README.md
manage.py
setup.py
testsettings.py
tox.ini

README.md

django-regex-redirects Build Status

Django redirects, with regular expressions. It is a modified version of django.contrib.redirects.

Features

  • Redirect your visitors using regular expressions
  • Configurable via the admin
  • Redirects are exportable as .csv

https://pypi.python.org/pypi/django-regex-redirects

Install

pip install django-regex-redirects or python setup.py install

Add regex_redirects to your INSTALLED_APPS:

INSTALLED_APPS = (
  ...
  'regex_redirects',
  ...
)

Add the middleware to your MIDDLEWARE:

MIDDLEWARE = [
  'regex_redirects.middleware.RedirectFallbackMiddleware'
  ...
]

Run manage.py migrate and you're good to go!