Metadata-Version: 1.2
Name: django-http-referrer-policy
Version: 1.1.0
Summary: django-http-referrer-policy provides a middleware class implementing the Referrer-Policy header for Django-powered sites.
Home-page: https://django-http-referrer-policy.readthedocs.io/
Author: Dmytro Litvinov
Author-email: me@DmytroLitvinov.com
License: MIT
Project-URL: Bug Reports, https://github.com/DmytroLitvinov/django-http-referrer-policy/issues
Project-URL: Source, https://github.com/DmytroLitvinov/django-http-referrer-policy
Description: =============================
        Django HTTP Referrer Policy
        =============================
        
        .. image:: https://badge.fury.io/py/django-http-referrer-policy.svg
            :target: https://badge.fury.io/py/django-http-referrer-policy
        
        .. image:: https://travis-ci.org/DmytroLitvinov/django-http-referrer-policy.svg?branch=master
            :target: https://travis-ci.org/DmytroLitvinov/django-http-referrer-policy
        
        .. image:: https://readthedocs.org/projects/django-http-referrer-policy/badge/?version=latest
            :target: https://django-http-referrer-policy.readthedocs.io/en/latest/?badge=latest
            :alt: Documentation Status
        
        .. image:: https://codecov.io/gh/DmytroLitvinov/django-http-referrer-policy/branch/master/graph/badge.svg
            :target: https://codecov.io/gh/DmytroLitvinov/django-http-referrer-policy
        
        django-referrer-policy provides a middleware class implementing `the Referrer-Policy header <https://www.w3.org/TR/referrer-policy/>`_ for
        `Django <https://www.djangoproject.com/>`_-powered sites.
        
        Documentation
        -------------
        
        The full documentation is at https://django-http-referrer-policy.readthedocs.io.
        
        Quickstart
        ----------
        
        Install Django HTTP Referrer Policy::
        
            pip install django-http-referrer-policy
        
        
        Add Django HTTP Referrer Policy Middleware to your settings:
        
        .. code-block:: python
        
            MIDDLEWARE = [
                ...
                'django_http_referrer_policy.middleware.ReferrerPolicyMiddleware',
                ...
            ]
        
        Optional: provide variable `REFERRER_POLICY` to your settings with valid value if default value ``'no-referrer-when-downgrade'`` does not suit to you:
        
        .. code-block:: python
        
            REFERRER_POLICY = 'no-referrer'
        
        More details about valid referrer policies:
        https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#Syntax
        
        
        Running Tests
        -------------
        
        Does the code actually work?
        
        ::
        
            source <YOURVIRTUALENV>/bin/activate
            (myenv) $ pip install tox
            (myenv) $ tox
        
        Credits
        -------
        
        Maintainable version of `original library <https://github.com/ubernostrum/django-referrer-policy/>`_.
        
        Tools used in rendering this package:
        
        *  Cookiecutter_
        *  `cookiecutter-djangopackage`_
        
        .. _Cookiecutter: https://github.com/audreyr/cookiecutter
        .. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
        .. _`origin library`: https://google.com
        
        
        
        
        History
        -------
        
        1.1.0 (2020-10-27)
        ++++++++++++++++++
        
        * Set default value to ``'no-referrer-when-downgrade'`` instead of requiring it
        * Add Django 3.1 and Python 3.9 for testing
        
        1.0.1 (2019-08-23)
        ++++++++++++++++++
        
        * Update setup.py
        * Update docs for setting value in django-settings.
        
        
        1.0.0 (2019-08-11)
        ++++++++++++++++++
        
        * First release on PyPI.
        
Keywords: django-http-referrer-policy django http-referrer
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django :: 1.11
Classifier: Framework :: Django :: 2.1
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.0
Classifier: Framework :: Django :: 3.1
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.5.0
