Skip to main content

django-redirector

Built for use on grovemade.com, Django Redirector adds simple admin powered 301 redirects.

Example rules:

Path: /foo/bar/ Type: exact (case insensitive)

Path: /products/ Type: startswith

Uses caching heavily because the middleware is called on every request.

  1. redirect rules are cached once

  2. redirect results are cached per request path

Cache is invalidated when a new rule is saved/added.

Installation

Add the package to your python path, pip install, setup.py install, etc.

Add ‘django_redirects’ to INSTALLED_APPS

Add ‘django_redirects.middleware.RedirectMiddleware’ immediately after CommonMiddleware in MIDDLEWARE_CLASSES

Syncdb, then navigate to your admin panel!

Settings

REDIRECT_CACHE_TIME: _default: 60*30_ Seconds to cache individual page redirect results.

Metadata

Release files for django-redirector 0.1.3

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

Source distribution (sdist)

Source distribution for django-redirector 0.1.3
File Size Uploaded Provenance Actions
django-redirector-0.1.3.tar.gz 347.0 kB Without provenance Details for django-redirector-0.1.3.tar.gz

Release files / django-redirector-0.1.3.tar.gz

Download URL django-redirector-0.1.3.tar.gz
Size 347.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e5a5e7391808d991d961210bb1e6ddb58e88de058770292108a6f6fb8d475289
BLAKE2b-256 checksum
How to use checksums
505a888d4693342cc39c39bd309b20288cf9199fd55a522dbc8993d6d0d3ca9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-redirector 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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