Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 689 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 689 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
  • Redirects are exportable as .csv

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

Install

pip install django-regex-redirects

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!