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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django-regex-redirects-0.5.0.tar.gz.

File metadata

File hashes

Hashes for django-regex-redirects-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f5b03a90dbbbb0c3c123737429cfc13fc27fa17284522a5aae9807ad73c8efdd
MD5 887375370edc0230f1e82ae5eb5a954d
BLAKE2b-256 f5323421cd66e11be6107c3086ba907b047b9f9c8cedda3a3f2e299641e5d111

See more details on using hashes here.

File details

Details for the file django_regex_redirects-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_regex_redirects-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 691274a2c42677a668b9d4841285f3008b024ab835b03a045a985ba5c5d4a603
MD5 56b5e821016228f076e72e9ae04e50fb
BLAKE2b-256 800784a5986cedd356563cd1f616022eeff091129942d7bd5ec4121efbbb9461

See more details on using hashes here.

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