Skip to main content

Django redirects, with regular expressions

Project description

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!

Project details


Download files

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

Source Distribution

django-regex-redirects-0.5.0.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

django_regex_redirects-0.5.0-py3-none-any.whl (11.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page