django-llms-txt — Generate llms.txt files for Django sites

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

Would love any feedback or suggestions. Happy to answer questions.

Side Note: When posting code here, enclose the code between lines of three
backtick - ` characters. This means you’ll have a line of ```, then your code,
then another line of ```. This forces the forum software to keep your code
properly formatted. Also remove excess blank lines - don’t double-space the code. (I have taken the liberty of correcting your original post. Please remember to do this in the future.)