A markdown converter for Django's admin docs to make it LLM friendly.
Project description
django-admin-docs-llm
A Django pluggable app for Administrative LLM Documentation.
Installation
# Using uv
uv add django-admin-docs-llm
# Or using pip
pip install django-admin-docs-llm
Configuration
Add admindocs_llm to your INSTALLED_APPS in Django settings:
INSTALLED_APPS = [
...
'admindocs_llm',
...
]
Include the app URLs in your project's urls.py:
from django.urls import path, include
urlpatterns = [
...
path('admindocs/', include('admindocs_llm.urls')),
...
]
Development
Setup
# Clone the repository
git clone <repository-url>
cd django-admin-docs-llm
# Install dependencies with test extras
uv sync --extra test
Running Tests
# Run all tests
./runtests.sh
# Run with coverage
./runtests.sh --cov=admindocs_llm
# Run specific test file
./runtests.sh tests/test_app.py
Test Django Server
# Run migrations
./manage.sh migrate
# Create superuser
./manage.sh createsuperuser
# Run development server
./manage.sh runserver
Then visit http://localhost:8000/admin/ and http://localhost:8000/admindocs/
See tests/README.md for more details about the test project.
Settings
ADMINDOCS_LLM_EXCLUDE_APPS
By default, all django.contrib.* apps are excluded from the LLM documentation output (models, views, tags, filters) since LLMs already know Django's built-in components.
# Override to exclude only specific apps
ADMINDOCS_LLM_EXCLUDE_APPS = ['admin', 'auth', 'contenttypes']
# Disable filtering entirely (show everything)
ADMINDOCS_LLM_EXCLUDE_APPS = []
Requirements
- Python >= 3.10
- Django >= 4.2
- markitdown >= 0.1.4
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_admin_docs_llm-0.2.0.tar.gz.
File metadata
- Download URL: django_admin_docs_llm-0.2.0.tar.gz
- Upload date:
- Size: 49.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7524f33cde6269bfc8aa6f5c5ba6c43317c3da10e70ce1a519cd06e5da2cfe08
|
|
| MD5 |
86742b38edde639f6b4d6a120a1d8c55
|
|
| BLAKE2b-256 |
3a0584a87fea62cdb4468811a46a911e31a394d4d25d5369096da0c2e7b6d616
|
File details
Details for the file django_admin_docs_llm-0.2.0-py3-none-any.whl.
File metadata
- Download URL: django_admin_docs_llm-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f6e0cd0e4809891f53ad207ac066db6a1a1e359d2c380c60537fb8e684f96c8
|
|
| MD5 |
431b363d6670d7366baf4c7a5d4351a6
|
|
| BLAKE2b-256 |
398c36b86f9e98788452607a0f76214e3a06a7292c54c03173bf97a8aed7d29f
|