← ClaudeAtlas

django-patternslisted

Django patterns - ORM gotchas, view design, migrations, settings, anti-patterns, and review checklist for Django backend work. Use whenever the project contains `manage.py`, `settings.py`, `apps.py`, or `django` in a Python manifest, OR the user asks about Django, its ORM, or any part of its request/model/template stack, even if Django is not mentioned by name.
ku5ic/dotfiles · ★ 0 · Data & Documents · score 72
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