Skip to main content

Make Django requests aware of the DNT header.

Project description

Do Not Track offers an easy way to pay attention to the DNT HTTP header. If users are sending DNT: 1, DoNotTrackMiddleware will set request.DNT = True, else it will set request.DNT = False.

Just add dnt.middleware.DoNotTrackMiddleware to your MIDDLEWARE_CLASSES (Django 1.9 and earlier) or MIDDLEWARE (Django 1.10 and later) and you’re good to go.

Release History

v0.2.0 - 2017-02-17

  • Supported Django versions: 1.8, 1.9, 1.10, and 1.11

  • Supported Python versions: 2.7, 3.3, 3.4. 3.5, 3.6

  • Add “DNT” to Vary header in response (eillarra)

v0.1.0 - 2011-02-16

  • Initial Release

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-dnt-0.2.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

django_dnt-0.2.0-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-dnt-0.2.0.tar.gz.

File metadata

  • Download URL: django-dnt-0.2.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-dnt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 38015b4904c59aa44b488b191eb191910775e242fa204976312780ebabe62d48
MD5 279c8eddedc3bb3195c04c5c7d2ba796
BLAKE2b-256 f4f8510c5006bcbbc5639a92870a6764aca0701e4d5d9796ec32e4cf724d3624

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_dnt-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3e4d23c262c3d14bc3235f679a6ea90d47843032b2597a0437e97a283f2bb5f0
MD5 8737ff91a50f4e0b7eb908741dcec12f
BLAKE2b-256 a3d0fe3d788f88e856cdaa849ecd1ff9911165bea898cd8397f2599bee9ee3da

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