Skip to main content

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.7.3 (2025-01-14)

Features

  • Switch to Coveralls Github action (#65)

Bugfixes

  • Remove print() statements in middleware.py (#82)

0.7.2 (2023-09-26)

Features

  • Migrate to bump-my-version (#56)

0.7.1 (2023-08-11)

Features

  • Add missing subpath_match and catchall_redirect fields in admin (#44)

Bugfixes

  • Fix django-multisite compatibility issue (#47)

0.7.0 (2023-08-09)

Features

  • Add django 4.2 compatibility, drop python<3.9, djangocms<3.9 and django<3.2 (#42)

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.

Release files for djangocms-redirect 0.7.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 djangocms-redirect 0.7.3
File Size Uploaded
djangocms_redirect-0.7.3.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for djangocms-redirect 0.7.3
File Interpreter ABI Platform
djangocms_redirect-0.7.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 26.9 kB

Release files / djangocms_redirect-0.7.3.tar.gz

Download URL djangocms_redirect-0.7.3.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
811760bd36186261471d878feb6a75f5c168f5f47bc27cc58f58948d02365a7c
BLAKE2b-256 checksum
How to use checksums
dd1992e1fad19101801a35810297b6e8af80a2278d671e1b94f2e2d27b0821c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / djangocms_redirect-0.7.3-py2.py3-none-any.whl

Download URL djangocms_redirect-0.7.3-py2.py3-none-any.whl
Size 11.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ca78419ffc6840db89264e34ff8712c08a8bc24d3efdc9fa50ec54729f5c88d7
BLAKE2b-256 checksum
How to use checksums
dc3c04ecbb7ebe3a43d017782b5e0f47c94d84e63b45d33731f1b3bf1b4e1210
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.7.3 This release

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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