# Django Patterns

> Guides Django architecture, DRF APIs, ORM patterns, and testing. Use when this capability is needed.

- Skill: `tomevault-io/django-patterns-7` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/django-patterns-7`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/django-patterns-7/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/django-patterns-7

---


# Django Development Patterns

Use this skill when building or refactoring Django applications.

## When to Use

- designing models, managers, or querysets
- building DRF serializers and viewsets
- organizing a Django project for maintainability
- adding auth, caching, middleware, or testing patterns

## Core Workflow

1. choose the project and app structure
2. model the domain cleanly with queryset and manager helpers
3. build API boundaries with serializers and views or viewsets
4. layer in auth, caching, and testing intentionally

## References

- [references/settings-examples.md](references/settings-examples.md)
- [references/model-examples.md](references/model-examples.md)
- [references/drf-examples.md](references/drf-examples.md)
- [references/additional-patterns.md](references/additional-patterns.md)
- [references/authentication.md](references/authentication.md)
- [references/testing-django.md](references/testing-django.md)
- [references/viewsets-views.md](references/viewsets-views.md)

---
> Source: [basidiocarp/lamella](https://github.com/basidiocarp/lamella) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->

