Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

Project description

PyPi Package Version Travis Build Status Coveralls Code Coverage Scrutinizer Code Quality Documentation Status

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.

Project details


Release history Release notifications

This version
History Node

1.3.1

History Node

1.3

History Node

1.2

History Node

1.1

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-x-robots-tag-middleware-1.3.1.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None Jun 6, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page