🤖 Django CS Robots
A simple, database-free Django app to manage your robots.txt file directly from the admin interface.
✨ Introduction
This package provides a straightforward solution for allowing site administrators to edit the robots.txt file without developer intervention. Instead of storing the content in a database model, this app reads from and writes directly to a physical file on your server. The file's path is fully configurable in your project's settings.py.
🌟 Key Features
- Edit in the Admin: ✏️ Provides a simple and intuitive form within the Django admin to modify your
robots.txtcontent. - Database-Free: 💾 Directly reads from and writes to a file on the filesystem, avoiding database overhead and migrations.
- Configurable Path: ⚙️ You can specify the exact location of your
robots.txtfile in yoursettings.pyfor full control. - Dynamic Serving: 🌐 Includes a view that serves the
robots.txtfile dynamically, ensuring that any changes made in the admin are live immediately. - Easy Integration: 🔌 Designed to be a plug-and-play addition to any Django project.
🛠️ Installation & Setup
1. Installation
Install the package from PyPI:
pip install django-cs-robots
2. settings.py Configuration
Add the app to your INSTALLED_APPS in settings.py. For the admin index page link to appear, place 'cs_robots' before 'django.contrib.admin'.
# settings.py
import os
INSTALLED_APPS = [
'cs_robots', # 👈 Place before admin
'django.contrib.admin',
# ... other apps
]
# Define the absolute path to your robots.txt file
# (e.g., inside your project's static directory)
ROBOTS_TXT_PATH = os.path.join(BASE_DIR, 'static', 'robots.txt')
3. URL Configuration
Add the cs_robots paths to your project's urls.py.
# your_project/urls.py
from django.contrib import admin
from django.urls import path, include
from cs_robots.views import serve_robots_txt # 👈 Import the serving view
urlpatterns = [
path('admin/', admin.site.urls),
# 1. Add the URL for the admin editor
path('admin/tools/', include('cs_robots.urls')),
# 2. Add the URL to serve the robots.txt file publicly
path('robots.txt', serve_robots_txt, name='robots_txt'),
# ... other project urls
]
💖 Contributions
Bug reports and feature requests are welcome!
Metadata
Release files for django-cs-robots 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_cs_robots-1.0.3.tar.gz | 9.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_cs_robots-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.0 kB
Release files / django_cs_robots-1.0.3.tar.gz
| Download URL | django_cs_robots-1.0.3.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b034e61d93c222c7b512dbfd7f7a6aebcfef7ef2448688117b54d3d26c04dec8
|
|
BLAKE2b-256 checksum How to use checksums |
0e95b6304e78f34cb3ab0e1c8f8e60af77d987abd43d267eb2833c204e06886a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.
Transparency logRelease files / django_cs_robots-1.0.3-py3-none-any.whl
| Download URL | django_cs_robots-1.0.3-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e7bc97b819a3660e1d0d1b31565ee01dbd36d0346c026846c7c1d31f34dbb1b
|
|
BLAKE2b-256 checksum How to use checksums |
74de66470c86c73aaa0b07942b21a6c9b0f01bb093218ceab0b0c575007333ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.
Transparency logSecurity for django-cs-robots 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for django_cs_robots-1.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.