django-patterns
Installation
SKILL.md
Django Patterns
Settings Split
settings/
├── base.py # Común
├── development.py # DEBUG=True
├── production.py # Security, caching
└── test.py # Fast, SQLite
QuerySet Optimization
# SIEMPRE usar select_related (FK) y prefetch_related (M2M)
User.objects.select_related('profile').prefetch_related('orders__items')