Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_admin_docs_llm-0.2.0.tar.gz (49.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_admin_docs_llm-0.2.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file django_admin_docs_llm-0.2.0.tar.gz.

File metadata

File hashes

Hashes for django_admin_docs_llm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7524f33cde6269bfc8aa6f5c5ba6c43317c3da10e70ce1a519cd06e5da2cfe08
MD5 86742b38edde639f6b4d6a120a1d8c55
BLAKE2b-256 3a0584a87fea62cdb4468811a46a911e31a394d4d25d5369096da0c2e7b6d616

See more details on using hashes here.

File details

Details for the file django_admin_docs_llm-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_docs_llm-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f6e0cd0e4809891f53ad207ac066db6a1a1e359d2c380c60537fb8e684f96c8
MD5 431b363d6670d7366baf4c7a5d4351a6
BLAKE2b-256 398c36b86f9e98788452607a0f76214e3a06a7292c54c03173bf97a8aed7d29f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page