django-patternslisted
Install: claude install-skill ku5ic/dotfiles
# Django patterns
Django 5.2 LTS (extended support through April 2028). Django 6.1 is current stable (non-LTS). Baseline for this skill is 5.2 LTS. Adapt advice to the version in the project's `requirements.txt`, `pyproject.toml`, or lockfile.
DRF-specific patterns load when the project includes `djangorestframework` in dependencies.
## Reference files
| File | Covers |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [models.md](reference/models.md) | Model definition, Meta.constraints, Meta.indexes, null vs blank, on_delete, custom managers |
| [orm.md](reference/orm.md) | select_related, prefetch_related, F(), Q(), .only()/.defer(), .iterator(), bulk operations |
| [views-and-forms.md](reference/views-and-forms.md) | CBV vs FBV, thin views, get_object_or_404, ModelForm, clean(), redirect after POST |
| [templates.md](reference/templates.md) | Template inheritance, auto-escaping, \|safe risks, {% csrf_token %} |
| [settings.md](reference/settings.md) | Split settings, DEBUG, ALLOWED*HOSTS, SECRET_KEY, SECURE*\* family, django-environ |
| [testing.md](reference/testing.md) | pytest-django, @pytest.mark.django_db, Fact