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.3.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

django_canonical_domain-0.3.0-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-canonical-domain-0.3.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15rc1

File hashes

Hashes for django-canonical-domain-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b346ddaf99267ad9252b87100d84fc17f2e86a800a9348d5cb68decfbd6a32c6
MD5 83188516625079ce272c585c7980b4c6
BLAKE2b-256 b01e56465d79db3466036642fe9ea85b3606a9b2c8672e66f13784a12ee6b5e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_canonical_domain-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15rc1

File hashes

Hashes for django_canonical_domain-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1c0856311803220f7794c432aadf8f912647c93cd84133f40911099e800711f1
MD5 4f7ff7573f7574b96855dd357f4db67c
BLAKE2b-256 bcc76db48b0b79c4b4a85a74bb76395dbd5d5f9133bb833750ac7c52c55677e0

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