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.6.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_regex_redirects-0.6.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file django_regex_redirects-0.6.0.tar.gz.

File metadata

  • Download URL: django_regex_redirects-0.6.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for django_regex_redirects-0.6.0.tar.gz
Algorithm Hash digest
SHA256 f0070cc032549db9bcaacec5d019af1392eea936014a9af11076722d64a08056
MD5 7c056419e01293f61b9dd6f163fbffa5
BLAKE2b-256 e7e6e82d8d49c9e8c6d8fe79cc95127609d5208a814f1b7847f264d695d8b7b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_regex_redirects-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95ba67e6c99bbf5987669a6f24d55dbd34d086b40f52d523689a5c60874166d1
MD5 f3c83681b195f698140084231f8f46f3
BLAKE2b-256 a002ed5a819c2637a64239986cee572f06adb11dab667360b56197cccff87172

See more details on using hashes here.

Supported by

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