skillfed

django-robots

Robots exclusion application for Django, complementing Sitemaps.

django-robots v6.1 320.5K downloads/30d#7,636 on PyPI475
Permissive license Active released

What it is and what it does

Django-robots is a Django application that handles the generation and management of robots.txt files, the standard mechanism web servers use to communicate crawler access policies to search engines and other bots. It implements the robots exclusion protocol and complements Django's built-in Sitemap contrib app, allowing you to define which crawlers can access which URL patterns on your site.

The package has been maintained since 2008 and is production-stable. It integrates directly into Django's admin interface for rule management and works with Django versions 2.2 through 4.2. With no external runtime dependencies and a straightforward installation process, it's designed to be a lightweight addition to existing Django projects that need fine-grained crawler access control.

Use it for:

  • Prevent search engines from crawling private or duplicate content areas of your site.
  • Allow or disallow specific bots (like Googlebot or Bingbot) from accessing certain URL patterns.
  • Manage crawler traffic to reduce server load by blocking aggressive or unnecessary bots.
  • Coordinate with your Sitemap to guide search engines to important pages while blocking others.
  • Enforce SEO policies by controlling which pages are indexed by different search engines.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Django application that manages robots.txt files according to the robots exclusion protocol, allowing you to configure which web crawlers can access which parts of your site.

Yes. This is a stable, actively maintained package with zero security vulnerabilities, low install friction, and permissive licensing. It solves a real SEO and crawler-management need for Django sites with no external dependencies. Install it if your site needs to manage robots.txt rules beyond a static file.

Install

django-robots on PyPI

pip

pip install django-robots

uv

uv add django-robots

poetry

poetry add django-robots

Installing django-robots

Before you install

Low friction install with no runtime dependencies. Actively maintained with recent commits and a stable release history since 2008. Supports current Django versions (2.2 through 4.2) and modern Python (3.7+).

License in practice

Permissive BSD license; you can use, modify, and distribute this package with minimal restrictions in commercial or open-source projects.

Quickstart

pip install django-robots==6.1

# In Django settings.py, add to INSTALLED_APPS:
# 'robots'

# Then define robots rules in the Django admin or database.

Requires Django 2.2 or later and Python 3.7 or later; must be added to INSTALLED_APPS and configured with database models.

Verify before relying

  • Whether the package requires explicit URL configuration beyond INSTALLED_APPS setup.
  • How robots.txt rules are persisted (database models vs. static configuration).
  • Integration requirements with Django's Sitemap contrib app mentioned in the description.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 1,072 days since the last release
Last repo commit
First released
Downloads 320,496/month — #7,636 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: django_robots-6.1-py3-none-any.whl

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 2.2Framework :: Django :: 3.1Framework :: Django :: 3.2Framework :: Django :: 4.0Framework :: Django :: 4.1Framework :: Django :: 4.2Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software DevelopmentTopic :: Software Development :: Libraries :: Application Frameworks

Tags

django robots.txt managementrobots exclusion protocol djangoweb crawler access controldjango sitemap robotssearch engine crawler rules
django-pluginseoweb-standards

More Software Development packages