Skip to main content

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

Project description

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'
]

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-ok-redirects-0.4.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

django_ok_redirects-0.4.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file django-ok-redirects-0.4.0.tar.gz.

File metadata

  • Download URL: django-ok-redirects-0.4.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for django-ok-redirects-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d8334b64b7a06de52935f41332c7f92052e182acb9e2cd9640fa77204c503924
MD5 7091cd7942f42b886733e56e54df06fe
BLAKE2b-256 39345ee5f4c4851670f4938242d09b354dabff85b615aa9a30db5b875992bc7b

See more details on using hashes here.

File details

Details for the file django_ok_redirects-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_ok_redirects-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 640f078541cdaeedf02379f9b501d5db90f8f540e497551cf712fca1324c6663
MD5 4dfacbc8d861e674241fdc896c1af5c1
BLAKE2b-256 aae1954798c4e2dfe75663e224b70bca847f908760b7502e49381082db83ff49

See more details on using hashes here.

Supported by

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