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.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_canonical_domain-0.2.0-py2.py3-none-any.whl (4.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3
django-canonical-domain-0.2.0.tar.gz (3.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page