django-dnt offers an easy way to pay attention to the DNT (Do Not Track) 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
v1.0 - 2020-08-12
No new features, but marking the project as mature since neither DNT or this implementation is likely to change, except to follow Django releases.
Add support for Django 2.0, 2.1, and 2.2
Add support for Python 3.7
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
Release files for django-dnt 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-dnt-1.0.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_dnt-1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 10.5 kB
Release files / django-dnt-1.0.tar.gz
| Download URL | django-dnt-1.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef10c6985bab8e95fa95090b857feb3ecf28080e7c8ef158ba771a0ddbc43f8a
|
|
BLAKE2b-256 checksum How to use checksums |
8a608034903697fed26f803d6a8f9d097bb23ee3230f34b8be3acd21c667731e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10
|
Release files / django_dnt-1.0-py2.py3-none-any.whl
| Download URL | django_dnt-1.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5932a67189e3129c0b26e42fd7afe691e01ebeee7bb801bb913e70c377f8e447
|
|
BLAKE2b-256 checksum How to use checksums |
255b58d78391aa51c917377900addef8f2057650049253823e93040a883724d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10
|