Skip to main content

Canonical domain redirection for Django

Project description

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.

Project details


Download files

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

Files for django-canonical-domain, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size django_canonical_domain-0.3.0-py2.py3-none-any.whl (3.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-canonical-domain-0.3.0.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page