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
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| django-dnt-1.0.tar.gz | 6.9 kB | Without provenance | Details for django-dnt-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_dnt-1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for django_dnt-1.0-py2.py3-none-any.whl |
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
|
Security for django-dnt 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.