Django for Agents
django-for-agents helps Django projects expose agent-friendly content:
- Markdown responses via HTTP content negotiation (
Accept: text/markdown). - Optional debug toggle (
?for_agents=1) in development. - Automatic
llms.txtendpoint generation from your URL configuration.
Supported Python versions: 3.12, 3.13, 3.14.
Install
uv add django-for-agents
Minimal setup
- Add the app to
INSTALLED_APPS. - Include
django_for_agents.urlsin your root URL config. - Inherit
ViewForAgentsfor pages you want agent-ready. - Optionally create matching
.mdtemplates for markdown responses.
If no matching .md template exists, django-for-agents falls back to converting
the rendered HTML template into markdown automatically. This fallback requires
the optional markdownify dependency:
uv add 'django-for-agents[markdown]'
If neither a .md template nor markdownify is available, requests for
markdown receive a 501 Not Implemented response explaining what is missing,
so agents can fall back to HTML instead of hitting a 500.
INSTALLED_APPS = [
# ...
"django_for_agents",
]
from django.urls import include, path
urlpatterns = [
# ...
path("", include("django_for_agents.urls")),
]
Documentation
- Full docs source:
docs/ - Read the Docs config:
.readthedocs.yaml
Main docs pages:
docs/installation.rstdocs/quickstart.rstdocs/settings.rstdocs/views.rstdocs/llms_txt.rstdocs/api.rst
Build and publish
uv build
uv publish
Metadata
Release files for django-for-agents 0.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_for_agents-0.0.3.tar.gz | 14.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_for_agents-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.0 kB
Release files / django_for_agents-0.0.3.tar.gz
| Download URL | django_for_agents-0.0.3.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e1f9fc5f3177a5f63f0b568eaaa7ebf378e6f6a34bdbe0b3c284c29cda9c69b
|
|
BLAKE2b-256 checksum How to use checksums |
1671351e4928bb262b2a731a32b704ff39de96f9235f605776e87dead9a3efcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 7, 2026.
Transparency logRelease files / django_for_agents-0.0.3-py3-none-any.whl
| Download URL | django_for_agents-0.0.3-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b56967ade2cd042759db6dc3ccebd3dd85c560084c4059a22696006d5d1fbaf
|
|
BLAKE2b-256 checksum How to use checksums |
780c128be1f484a3a3b947907597821e429a485a28ebb8b15b3633f0db44d878
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 7, 2026.
Transparency logSecurity for django-for-agents 0.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_for_agents-0.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 Jul 7, 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.