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.7.0.tar.gz (8.2 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.7.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django_regex_redirects-0.7.0.tar.gz
Algorithm Hash digest
SHA256 e09a0e9b4c884083c885a90839e8399c68d7175a768f69dbb383e8209f0b05a8
MD5 21a67764bd573d4c2749199742977a12
BLAKE2b-256 a03bc63610895791c5282c35b1b03e04b5473c1fca2069e2b8bc0b014088f999

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_regex_redirects-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d28558fdda998fc69e504d19a85252b8a559f46f8e60e20b62fdc23e571a617b
MD5 e098c8787d0b089f6728d3f9f6132405
BLAKE2b-256 fec9576644a4d0f8d8a7303fdaefd89207f9b6b7d9ec70f914d7e836b8899d84

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