skip to navigation
skip to content

django-x-robots-tag-middleware 1.3.1

Enables returning the X-Robots-Tag header based on Django settings.

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

  1. Add 'x_robots_middleware.XRobotsMiddleware', to your middleware list in settings.py.
  2. 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.

 
File Type Py Version Uploaded on Size
django-x-robots-tag-middleware-1.3.1.tar.gz (md5) Source 2016-06-06 2KB