django-http-referrer-policy provides a middleware class implementing the Referrer-Policy header for Django-powered sites.
Project description
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4be2ee74a4975195ed930ce77ab849fd12192a120f2b41823a9ba132534aa99e |
|
MD5 | 53654b3defd99f7860cda272990482b4 |
|
BLAKE2b-256 | 9fd315e30528a575d5e920889152cbfd45b4cb7061e2ca489bb0542c0ac4a8b5 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4e26130104cccbbbe0cb2895f13c697203a045b7c3340ad3680428b56b5f4c2 |
|
MD5 | 685acb7c72fc690865647c2ff6339d32 |
|
BLAKE2b-256 | de626ada0f3458c74acff3d704dd2047ff1079af97a326302fa1f74765008485 |