Enables returning the X-Robots-Tag header based on Django settings.
Project description
[![PyPi Package Version](https://badge.fury.io/py/django-x-robots-tag-middleware.svg)](http://badge.fury.io/py/django-x-robots-tag-middleware)
![Python package](https://github.com/cyface/django-x-robots-tag-middleware/workflows/Python%20package/badge.svg)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/cyface/django-x-robots-tag-middleware/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/cyface/django-x-robots-tag-middleware/?branch=master)
[![Documentation Status](https://readthedocs.org/projects/django-x-robots-tag-middleware/badge/?version=latest)](http://django-x-robots-tag-middleware.readthedocs.org/en/latest/?badge=latest)
Simple Django middleware to use the X-Robots-Tag header based on a config param.
Installation
From pypi <https://pypi.python.org>
$ pip install django-x-robots-tag-middleware
Usage
Add 'x_robots_middleware.XRobotsMiddleware', to your middleware list in settings.py.
Add X_ROBOTS_TAG = ['noindex','nofollow'] to your settings.py with the settings you want for the X_ROBOTS_TAG.
Details about the values for the tag and what they do can be found in the Google Documentation.
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
Hashes for django-x-robots-tag-middleware-1.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8d7b5a87740202f2c25c8bc6007087b3d3cc0d1bbda4c95f43647eccdd891e5 |
|
MD5 | 73e4322678c4a31ef4b26cc0440109c4 |
|
BLAKE2b-256 | 37a386c2d14608d21e1e90bc0ab34d64509ff3560efa703b7b749e59665f172f |
Hashes for django_x_robots_tag_middleware-1.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aceba630d735874e8e1643368944cb8c6b84915e7e814e65fb1f86ef5f8d2409 |
|
MD5 | e79a69fd0c74dbbe5f947ed910305813 |
|
BLAKE2b-256 | 502e76cf7ac4360b099499c6cb491adf5abef3cf0790fe9863013ed426e229c8 |