Skip to main content

django-ok-redirects PyPI version

Build status Code health Python versions PyPI downloads Software license Project Status

Simple Redirects App, which is particularly useful in the cases where you want to update some existing URLs without compromising your Website SEO.

Installation

Install with pip:

$ pip install django-ok-redirects

Update INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    'ok_redirects',
    ...
]

Make migrations

$ python manage.py migrate

Available settings

REDIRECTS_IGNORE_PATH_PREFIXES - Tuple of path prefixes to ignore.

For example:

REDIRECTS_IGNORE_PATH_PREFIXES = (
    '/api/v1/',
    '/uploads/',
    '/static/',
)

Basic example to use:

Add the redirects middleware to the MIDDLEWARE configuration:

MIDDLEWARE = [
    ...

    'ok_redirects.middleware.RedirectMiddleware'
]

Metadata

Release files for django-ok-redirects 0.4.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 django-ok-redirects 0.4.0
File Size Uploaded Provenance Actions
django-ok-redirects-0.4.0.tar.gz 9.6 kB Without provenance Details for django-ok-redirects-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-ok-redirects 0.4.0
File Interpreter ABI Platform Actions
django_ok_redirects-0.4.0-py3-none-any.whl Python 3 none any Details for django_ok_redirects-0.4.0-py3-none-any.whl

Total release size: 24.3 kB

Release files / django-ok-redirects-0.4.0.tar.gz

Download URL django-ok-redirects-0.4.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d8334b64b7a06de52935f41332c7f92052e182acb9e2cd9640fa77204c503924
BLAKE2b-256 checksum
How to use checksums
39345ee5f4c4851670f4938242d09b354dabff85b615aa9a30db5b875992bc7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / django_ok_redirects-0.4.0-py3-none-any.whl

Download URL django_ok_redirects-0.4.0-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
640f078541cdaeedf02379f9b501d5db90f8f540e497551cf712fca1324c6663
BLAKE2b-256 checksum
How to use checksums
aae1954798c4e2dfe75663e224b70bca847f908760b7502e49381082db83ff49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for django-ok-redirects 0.4.0

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