django-canonical-domain

Canonical domain redirection for Django


License
BSD-3-Clause
Install
pip install django-canonical-domain==0.3.0

Documentation

django-canonical-domain - Canonical domain redirection for Django

https://travis-ci.org/matthiask/django-canonical-domain.png?branch=master Documentation Status https://codeclimate.com/github/matthiask/django-canonical-domain.png

This module allows redirecting all requests for a given Django instance to a single canonical domain and optionally enforcing HTTPS for all requests as well.

It achieves this by providing a replacement for Django's django.middleware.security.SecurityMiddleware which overrides its request processing with a variant that also redirects requests to the canonical domain which already are secure.