Robust redirect app for django that supports domain redirects and regular expression patterns
Python
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 6 commits behind concentricsky:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
sky_redirects
.gitignore
LICENSE
README.rst
setup.py

README.rst

Usage

add 'sky_redirects' to INSTALLED_APPS in settings.py:

INSTALLED_APPS = (
   'sky_redirects',
   ...

Add the sky_redirects middleware to the beginning of MIDDLEWARE_CLASSES in settings.py:

MIDDLEWARE_CLASSES = [
   'sky_redirects.middleware.DomainRedirectMiddleware',
   'sky_redirects.middleware.RegexRedirectMiddleware',
   ...

Then run syncdb, and you are ready to go!