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.

Source Distribution

django-canonical-domain-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

django_canonical_domain-0.2.0-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-canonical-domain-0.2.0.tar.gz.

File metadata

File hashes

Hashes for django-canonical-domain-0.2.0.tar.gz
Algorithm Hash digest
SHA256 08f87b6bb40ff22bda7fb7c69779ec085da03ebff8e15339bcd1071bd6019f8e
MD5 f0e8125d5ccda6b9ed73d7f45f163007
BLAKE2b-256 79d29be1353f7de43719440f34b7d61476dd81c667b390b778025b504861347d

See more details on using hashes here.

File details

Details for the file django_canonical_domain-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_canonical_domain-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 171e2d6c51d598295a30ab4b4be2463a4855bd2e496beb9ed0479f9a2d19231e
MD5 a0274099a23f47181675246d6d73d335
BLAKE2b-256 4f63cfcf86652ada8cc8799bd1da335c0850c5722c7b597368eff424e7556cbd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page