Skip to main content

A django CMS enabled application to handle redirects

Project description

Join the Gitter chat Latest PyPI version Python versions Latest CI build status Test coverage Code Climate License

A django CMS enabled application to handle redirects

This is heavily borrowed from django.contrib.redirects with three major changes:

  • Selection of django CMS pages

  • Selection of redirect status code

  • Middleware can processed in the request or response phase

Why using process_request?

Doing database queries in the middleware process_request is heavily discouraged as it’s a performance hit, especially when doing redirects which are just a tiny part of the processed requests. Except that sometimes it’s just what you need (for example to “hide” content without deleting / unpublishing it) By caching both existing and non existing redirects for a given URL the performance hit is minimized for the use cases that requires process_request.

Documentation

The full documentation is at https://djangocms-redirect.readthedocs.io.

Installation

See https://djangocms-redirect.readthedocs.io/en/latest/installation.html

Features

  • Set old and new path, by selection existing django CMS pages or writing down the complete address

  • Select the redirect status code (301, 302)

  • Support for status code 410

Credits

Tools used in rendering this package:

History

0.6.0 (2020-11-15)

Features

  • Drop Python 2, Django < 2.2 - Update toolchain (#39)

  • Fix Handling of trailing slashes in redirects (#31)

Unreleased

  • Nothing yet

0.5.0 (2019-12-27)

  • Add compatibility with Django 2.2

  • Drop compatibility with Django < 1.11

  • Drop compatibility with django CMS < 3.6

  • Move to django-app-helper

  • Add support to match unquoted strings as redirect old path

0.4.0 (2019-08-22)

  • Add subpath matching

0.3.1 (2019-07-13)

  • Ignore querystring when matching redirect objects

0.3.0 (2019-03-11)

  • Added compatibility to Django 2.0, 2.1

0.2.3 (unreleased)

  • Add support to match unquoted strings as redirect old path

0.2.2 (2019-06-02)

  • Ignore querystring when matching redirect objects

0.2.1 (2019-04-22)

  • Fixed compatibility issue with Django 1.8

0.2.0 (2018-11-03)

  • Updated for Django 1.11

  • Added configurable cache timeout

  • Added configuration option to check redirect on 404 only

0.1.1 (2017-11-19)

  • Added missing migration.

  • Fixed compatibility issue with Django 1.8

0.1.0 (2016-02-01)

  • First release on PyPI.

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

djangocms-redirect-0.6.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

djangocms_redirect-0.6.0-py2.py3-none-any.whl (11.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file djangocms-redirect-0.6.0.tar.gz.

File metadata

  • Download URL: djangocms-redirect-0.6.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for djangocms-redirect-0.6.0.tar.gz
Algorithm Hash digest
SHA256 672fd6c4912634feff49345dc3a6e9eda4f757520f030367d54d55baf421e06a
MD5 f167e3fab5e46f799f6878d4edaf5e93
BLAKE2b-256 adef0eb0dbf37049d05b5ea162937bcaa826d939b15a8d19817e0ea288b759ed

See more details on using hashes here.

File details

Details for the file djangocms_redirect-0.6.0-py2.py3-none-any.whl.

File metadata

  • Download URL: djangocms_redirect-0.6.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for djangocms_redirect-0.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b900afee2021c213db6cd0967b4a7720722cef044dcc1e2305abeb57fb2e344e
MD5 09c7fcba38ff6ed73c2141800d8bb7a3
BLAKE2b-256 3c38d72129cdbe826fdf55f95390e2e0e3dd42d11ccf67b9813ea450985d84f9

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