Hi everyone,
I just published my first Django package: **django-llms-txt**
It generates [llms.txt](https://llmstxt.org/) files for your Django site — the open standard for making website content discoverable by AI assistants.
**Features:**
-
Settings-based configuration for static sections
-
Auto-generate sections from Django models (blog posts, docs, products, etc.)
-
Dynamic views for `/llms.txt` and `/llms-full.txt`
-
Management command for static file generation
-
Supports Django 4.2+ and Python 3.9+
**Example:**
\`\`\`python
LLMS_TXT = {
"SITE_NAME": "My Site",
"SITE_URL": "https://example.com",
"AUTO_SECTIONS": [
{
"title": "Blog Posts",
"model": "blog.Post",
"filter": {"status": "published"},
"name_field": "title",
"url_method": "get_absolute_url",
"description_field": "excerpt",
},
],
}
Install: pip install django-llms-txt
-
PyPI: django-llms-txt · PyPI
Would love any feedback or suggestions. Happy to answer questions.