Do-Not-Track middleware
Перейти к файлу
John Whitlock 6431ff497d
Merge pull request #9 from mozilla/release-1.0
Prepare for 1.0 release
2020-08-12 10:57:59 -05:00
dnt Update to v0.2.0 2017-02-17 14:04:30 -06:00
testapp Support MIDDLEWARE for Django 1.10 and up 2017-02-17 13:54:58 -06:00
tests Add tests, tox, TravisCI config 2017-02-17 13:54:58 -06:00
.gitignore Update packaging 2017-02-17 14:04:30 -06:00
.travis.yml CI: Match Python and TOXENV for Py 3.4/Django 1.8 2020-08-12 10:09:29 -05:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file 2019-03-29 14:27:25 -05:00
HISTORY.rst Prepare for 1.0 release 2020-08-12 09:59:09 -05:00
LICENSE Set up setup.py. 2011-02-16 13:26:45 -05:00
MANIFEST.in Add CODE_OF_CONDUCT.md to package manifest 2019-03-29 14:54:38 -05:00
Makefile Remove registration steps from release 2020-08-12 10:50:03 -05:00
README.rst Add link to Wikipedia page on Do Not Track 2020-08-12 10:35:15 -05:00
requirements.dev.txt Update packaging 2017-02-17 14:04:30 -06:00
setup.cfg Update packaging 2017-02-17 14:04:30 -06:00
setup.py Add jwhitlock as maintainer 2020-08-12 10:34:55 -05:00
tox.ini Add a lint test to TravisCI 2019-03-29 15:00:31 -05:00

README.rst

==========
Django-DNT
==========

.. image:: http://img.shields.io/travis/mozilla/django-dnt/master.svg
    :alt: The status of Travis continuous integration tests
    :target: https://travis-ci.org/mozilla/django-dnt

.. image:: https://img.shields.io/codecov/c/github/mozilla/django-dnt.svg
    :target: https://codecov.io/gh/mozilla/django-dnt
    :alt: The code coverage

.. image:: https://img.shields.io/pypi/v/django-dnt.svg
    :alt: The PyPI package
    :target: https://pypi.python.org/pypi/django-dnt

.. Omit badges from docs

``django-dnt`` offers an easy way to pay attention to the ``DNT``
(`Do Not Track <https://en.wikipedia.org/wiki/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.