Django and Django REST Framework optimization guidelines. This skill defines the architectural and performance standards for the back-end, focusing on ORM efficiency, serialization strategies, and API security
Comprehensive guide for Django and Django REST Framework development. Contains rules prioritized by impact on database performance, response times, and security.
Reference these guidelines when:
select_related, prefetch_related).| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Architecture & Design Patterns | HIGH | arch- |
| 2 | Project Configuration & Tooling | MEDIUM | conf- |
arch-app-structure - Enforces apps/ directory and package-based models/viewsarch-orm-model-structure - One model per file, strict meta options, and typingarch-api-serializer-definition - Action-based naming, explicit field declaration ordered by model, and representation delegationconf-settings-structure - Modular settings (base/development/production) and secure secretsconf-env-dependencies - Segregated .venv and split requirement filesconf-docker-standards - Slim images, layer caching, and reverse-domain namingarch-view-definition - Generic views usage, strict APIView typing, and explicit security declarationRead individual rule files for detailed explanations and code examples:
./rules/*.md
Each rule file contains:
For the complete guide with all rules expanded: AGENTS.md