Skip to main content

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

Project description

https://badge.fury.io/py/django-x-robots-tag-middleware.svg https://travis-ci.org/cyface/django-x-robots-tag-middleware.svg?branch=master https://coveralls.io/repos/cyface/django-x-robots-tag-middleware/badge.svg?branch=master&service=github

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

Just add x_robots_middleware.XRobotsMiddleware to your middleware.

And add this config param:

X_ROBOTS_TAG = ['noindex','nofollow']

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

django-x-robots-tag-middleware-0.1.6.tar.gz (2.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page