Skip to main content

django-http-referrer-policy provides a middleware class implementing the Referrer-Policy header for Django-powered sites.

Project description

https://badge.fury.io/py/django-http-referrer-policy.svg https://travis-ci.org/DmytroLitvinov/django-http-referrer-policy.svg?branch=master Documentation Status https://codecov.io/gh/DmytroLitvinov/django-http-referrer-policy/branch/master/graph/badge.svg

django-referrer-policy provides a middleware class implementing the Referrer-Policy header for Django-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 it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'django_http_referrer_policy',
    ...
)

Add Django HTTP Referrer Policy Middleware to your settings:

MIDDLEWARE = [
    ...
    'django_http_referrer_policy.middleware.ReferrerPolicyMiddleware',
    ...
]

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Maintainable version of original library.

Tools used in rendering this package:

History

1.0.0 (2019-08-11)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-http-referrer-policy-1.0.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

django_http_referrer_policy-1.0.0-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-http-referrer-policy-1.0.0.tar.gz.

File metadata

  • Download URL: django-http-referrer-policy-1.0.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for django-http-referrer-policy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4be2ee74a4975195ed930ce77ab849fd12192a120f2b41823a9ba132534aa99e
MD5 53654b3defd99f7860cda272990482b4
BLAKE2b-256 9fd315e30528a575d5e920889152cbfd45b4cb7061e2ca489bb0542c0ac4a8b5

See more details on using hashes here.

File details

Details for the file django_http_referrer_policy-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_http_referrer_policy-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for django_http_referrer_policy-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e4e26130104cccbbbe0cb2895f13c697203a045b7c3340ad3680428b56b5f4c2
MD5 685acb7c72fc690865647c2ff6339d32
BLAKE2b-256 de626ada0f3458c74acff3d704dd2047ff1079af97a326302fa1f74765008485

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page