Skip to main content
https://badge.fury.io/py/readyrector.png

Easy to implement redirect middleware, which loads redirects from a configurable backend.

Installation

pip install readyrector

Usage

# settings.py
INSTALLED_APPS = (
    # ...
    'readyrector',
    # ...
)

# put at the end of the middleware list as a last resort
MIDDLEWARE = (
    # ...
    'readyrector.middleware.RedirectDatabaseMiddleware',
)

RedirectDatabaseMiddleware

Gets redirects from database records. Implement a view or API to manage these records.

RedirectURLConfMiddleware

Gets redirects from a URL conf file. Requires setting READYRECTOR_URLCONF

Settings

READYRECTOR_URLCONF

  • Default: ''

Required when RedirectURLConfMiddleware is used. Expects a path to a URL conf file.

Release files for readyrector 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for readyrector 1.0
File Size Uploaded
readyrector-1.0.tar.gz 6.0 kB Details

Release files / readyrector-1.0.tar.gz

Download URL readyrector-1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
06f2407416e831fb1c84ed62871f49b9d62de64f0286fa34d15f953b48501117
BLAKE2b-256 checksum
How to use checksums
c1af335ce0251c1f26980544dc871590f752866c1e738985b9795a9902be3146
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page