Skip to main content

Helpers for Wagtail Redirects

Project description

wagtail-automatic-redirects

Package to help with Wagtail URL redirects. Wagtail comes with a redirects app which helps to manually create redirects in Wagtail admin. This helper app helps to automatically create redirects when the URL of Page is changed. Redirects will be created for the page and all its child pages automatically. This project uses the page revisions and publish signal to automate the redirects creation process.

Installation

pip install wagtail-automatic-redirects

Add the package to your project's settings

INSTALLED_APPS = [
    # ... Other apps
    "wagtail_automatic_redirects",
    "wagtail.contrib.redirects",
    # ... Other apps
]

Make sure the INSTALLED_APPS setting include "wagtail.contrib.redirects", app from Wagtail.

Also, check the MIDDLEWARE setting include

MIDDLEWARE = [
    # ... Other middlewares
    "wagtail.contrib.redirects.middleware.RedirectMiddleware",
    # ... Other middlewares
]

License

BSD

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

wagtail-automatic-redirects-1.1.5.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file wagtail-automatic-redirects-1.1.5.tar.gz.

File metadata

  • Download URL: wagtail-automatic-redirects-1.1.5.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.6

File hashes

Hashes for wagtail-automatic-redirects-1.1.5.tar.gz
Algorithm Hash digest
SHA256 c9cc67319daeba371995a7eae361567ca7ead55c7e7dcc4b7fc3a663b122a6fd
MD5 c55183d86fffee3d18a9f7c870541fe0
BLAKE2b-256 34fba869075232eed5d2a18024ccbb401e52106b83aee230cbfc641dd3599df8

See more details on using hashes here.

File details

Details for the file wagtail_automatic_redirects-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: wagtail_automatic_redirects-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.6

File hashes

Hashes for wagtail_automatic_redirects-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 354aee59460bb8b8f75ccc12f90fbf338155536a0e82c3ad9988974596e3dab6
MD5 7c1217f0c3655de8bae347162cd01f66
BLAKE2b-256 69e174144cab12f6ede5066894e8d98327eb64d2f0ac04f6b896198d6f5dc5d9

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