Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A django CMS enabled application to handle redirects

Project Description

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.


The full documentation is at


  • 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

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python test


Tools used in rendering this package:


0.1.1 (unreleased)

  • Added missing migration.
  • Fix compatibility issue with Django 1.8

0.1.0 (2016-02-01)

  • First release on PyPI.
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
djangocms_redirect-0.1.1-py2.py3-none-any.whl (10.5 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Nov 19, 2017
djangocms-redirect-0.1.1.tar.gz (8.4 kB) Copy SHA256 Checksum SHA256 Source Nov 19, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting