{ "info": { "author": "Ben Spaulding", "author_email": "ben@benspaulding.us", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: Browsers", "Topic :: Internet :: WWW/HTTP :: Site Management" ], "description": "=====================\n Django Do Not Track\n=====================\n\n|Build status|_\n\n.. |Build status| image::\n https://secure.travis-ci.org/benspaulding/django-donottrack.png\n.. _Build status: https://travis-ci.org/benspaulding/django-donottrack\n\nDjango utilities for honoring the `Do Not Track HTTP header`_.\n\n`Mathieu Leplatre`_ posted an article |Do not forget DNT|_. I really\nappreciated the post, and wanted to implement the ideas in my projects. Being\nlazy, I only wanted to do the work once, so I took his ideas and packaged them\nup with some tests and docs.\n\nIncluded is middleware for detecting ``HTTP_DNT`` and passing its information\non to both views and templates via the ``request`` object, and a useful\ncontext processor. The middleware also adds a vary header for cache control.\n\nThis package requires Python 2.7 or newer and Django 1.4 or later.\n\nRefer to the documentation_ for complete information.\n\n.. _Do Not Track HTTP header: http://donottrack.us/\n.. _Mathieu Leplatre: https://twitter.com/leplatrem\n.. |Do not forget DNT| replace:: `Django: Do not forget Do Not Track`\n.. _Do not forget DNT:\n http://blog.mathieu-leplatre.info/django-do-not-forget-do-not-track.html\n.. _documentation: http://django-donottrack.readthedocs.org/\n\n\nQuick-Start\n-----------\n\nInstallation of the middleware is required. The context processor is convenient\nand thus recommended.\n\nSettings::\n\n MIDDLEWARE_CLASSES = (\n # default/other processors ...\n 'donottrack.middleware.DoNotTrackMiddleware',\n # default/other processors ...\n )\n\n TEMPLATE_CONTEXT_PROCESSORS = (\n # default/other processors ...\n 'donottrack.context_processors.donottrack',\n )\n\nThen in your template you can do things like::\n\n {% if not donottrack %}\n {% include \"google-analyitcs.html\" %}\n {% endif %}\n\nAnd your views can also handle DNT::\n\n def my_view(request):\n if not request.donottrack:\n # Log some request data ...\n\n # continue with view logic\n\n.. tip::\n\n Adding this app to your ``INSTALLED_APPS`` is currently unnecessary unless\n you want to run tests.\n\n\nOther Information\n-----------------\n\n.. important::\n\n Installing this app in your Django project does not mean that you honor Do\n Not Track any more than installing django-secure_ means your web\n applicaiton is secure. It only means you have some tools to help with that\n end goal. You will need to audit your full stack to ensure that you are\n honoring DNT. But this app is a great start, and we hope you find it\n useful.\n\n.. _django-secure: https://github.com/carljm/django-secure\n\n.. note::\n\n This is an initial release. Despite being simple and theoretically solid\n (it has a full test suite) this is a beta-type release, and the public API\n may change, and as I learn more about DNT, more functionality may be added.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/benspaulding/django-donottrack/tarball/v0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/benspaulding/django-donottrack/", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-donottrack", "package_url": "https://pypi.org/project/django-donottrack/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-donottrack/", "project_urls": { "Download": "https://github.com/benspaulding/django-donottrack/tarball/v0.1", "Homepage": "https://github.com/benspaulding/django-donottrack/" }, "release_url": "https://pypi.org/project/django-donottrack/0.1/", "requires_dist": null, "requires_python": null, "summary": "Django utilities for honoring the Do Not Track HTTP header.", "version": "0.1" }, "last_serial": 789496, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e84ee9945a5e2c575549f770f162dfcf", "sha256": "44e18a0699984d35d626129c92d7af663c581491f9ec86937339fd9914e06bb1" }, "downloads": -1, "filename": "django-donottrack-0.1.tar.gz", "has_sig": false, "md5_digest": "e84ee9945a5e2c575549f770f162dfcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12129, "upload_time": "2013-03-12T13:34:37", "url": "https://files.pythonhosted.org/packages/68/5d/11f52779d9aea936d67ed44ee82fe69692e37db5a8f6e868bb51f3465b9f/django-donottrack-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e84ee9945a5e2c575549f770f162dfcf", "sha256": "44e18a0699984d35d626129c92d7af663c581491f9ec86937339fd9914e06bb1" }, "downloads": -1, "filename": "django-donottrack-0.1.tar.gz", "has_sig": false, "md5_digest": "e84ee9945a5e2c575549f770f162dfcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12129, "upload_time": "2013-03-12T13:34:37", "url": "https://files.pythonhosted.org/packages/68/5d/11f52779d9aea936d67ed44ee82fe69692e37db5a8f6e868bb51f3465b9f/django-donottrack-0.1.tar.gz" } ] }