django-patternslisted
Install: claude install-skill ku5ic/dotfiles
# Django patterns
Django 5.2 LTS (extended support through April 2028). Django 6.0 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.
## When to load this skill
- Project contains `manage.py`, `settings.py`, `apps.py`
- `pyproject.toml`, `requirements.txt`, or `Pipfile` lists `django` or `Django`
- User asks about Django, models, ORM, views, forms, templates, migrations, admin, signals, middleware
## When not to load this skill
- Pure FastAPI, Flask, or other Python web frameworks without Django
- Django REST Framework questions only (DRF-specific patterns live in their own skill)
## Reference files
| File | Topics |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [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_obje