# Django Orm

> Query construction, N+1 detection and migration safety for Django: select_related vs prefetch_related, when a migration needs a separate data step, and how to read the SQL a queryset actually emits.

- Skill: `gulmezeren2-byte/django-orm` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gulmezeren2-byte/django-orm`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gulmezeren2-byte/django-orm/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: gulmezeren2-byte (https://skillmd.com/u/gulmezeren2-byte)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/gulmezeren2-byte/django-orm

---


# django-orm

Query construction, N+1 detection and migration safety for Django:
select_related vs prefetch_related, when a migration needs a separate data
step, and how to read the SQL a queryset actually emits.

