# Django Headless > A REST API for your Django models. Django Headless generates a Django REST Framework API for the Django models you decorate with `@expose()`, for a frontend such as Next.js or Astro. Every page below is plain Markdown. The full documentation in one file is at https://djangoheadless.org/llms-full.txt. An agent skill with the essentials is at https://github.com/dwarsbit/django-headless/tree/main/skills/django-headless. ## Docs - [Introduction](https://djangoheadless.org/docs/intro.md): Django Headless turns Django into the backend of a headless CMS. - [Installation](https://djangoheadless.org/docs/installation.md): This page sets up Django Headless in an existing Django project and exposes a first model. - [Exposing models](https://djangoheadless.org/docs/models.md): Expose a model with the `@expose()` decorator to give it generated routes. - [Singletons](https://djangoheadless.org/docs/singletons.md): A singleton is an exposed model with exactly one instance, such as site settings. - [Filtering](https://djangoheadless.org/docs/filtering.md): `LookupFilter` filters list routes with query parameters named after Django's [field lookups](https://docs.djangoproject.com/en/stable/ref/models/querysets/#field-lookups), such as `?title__icontains=django`. - [Pagination](https://djangoheadless.org/docs/pagination.md): `PageNumberPagination` splits list routes into pages and wraps them in an envelope with the total count and links to the next and previous page. - [Authentication](https://djangoheadless.org/docs/authentication.md): Generated routes only answer staff users by default (see [Permissions](https://djangoheadless.org/docs/permissions.md)), so a client gets access by authenticating. - [Serializers](https://djangoheadless.org/docs/serializers.md): Each exposed model is serialized with a `ModelSerializer` that includes all fields, minus those left out with `fields` or `exclude` (see [Exposing models](https://djangoheadless.org/docs/models.md#field-control)). - [Permissions](https://djangoheadless.org/docs/permissions.md): Generated routes only answer staff users by default: `HEADLESS["DEFAULT_PERMISSION_CLASSES"]` defaults to DRF's `IsAdminUser`. - [OpenAPI schema](https://djangoheadless.org/docs/schema.md): Django Headless can describe the generated routes in an [OpenAPI](https://spec.openapis.org/oas/v3.0.3) 3.0 schema. - [TypeScript client](https://djangoheadless.org/docs/client.md): The `@django-headless/client` npm package is a client for the API, written in TypeScript. - [Settings reference](https://djangoheadless.org/docs/settings.md): All Django Headless settings live in the `HEADLESS` dictionary in your Django settings. - [System checks](https://djangoheadless.org/docs/checks.md): Django Headless adds checks to Django's [system check framework](https://docs.djangoproject.com/en/stable/topics/checks/) that catch risky or broken settings before a request does. - [AI agents](https://djangoheadless.org/docs/agents.md): AI coding agents, such as Claude Code, Codex or Cursor, can set up Django Headless and write frontend code against the API. ## Optional - [Changelog](https://github.com/dwarsbit/django-headless/blob/main/CHANGELOG.md) - [Source code](https://github.com/dwarsbit/django-headless)