Enables returning the X-Robots-Tag header based on Django settings.
Project description
Simple Django middleware to use the X-Robots-Tag header based on a config param.
Installation
From pypi:
$ pip install django-x-robots-tag-middleware
or:
$ easy_install django-x-robots-tag-middleware
or clone from github:
$ git clone git://github.com/cyface/django-x-robots-tag-middleware.git
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
Close
Hashes for django-x-robots-tag-middleware-1.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bb4336cc78e31c2aacec571d6045cc21247f7a81d9334a70073a8f842d62719 |
|
MD5 | fd66029dacb1fa89be9782c855dc9ac3 |
|
BLAKE2b-256 | c96c52a0f33546df9aa6cdaac371947d336ea2f998a579ac0e1ac0ccd9d29b47 |