Skip to content

Files

Latest commit

bdcb977 · Sep 2, 2013

History

History
43 lines (28 loc) · 668 Bytes

README.md

File metadata and controls

43 lines (28 loc) · 668 Bytes

django-regex-redirects

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
  • Counts the number of visitors
  • Redirects are exportable as .csv

Install

python setup.py install

Add regex_redirects to your INSTALLED_APPS:

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

Add the middleware to your MIDDLEWARE_CLASSES:

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

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