django
Skill4 starsChanged 8 months agoUnlicenseView on GitHub
Use when working with Django code — looking up ORM, view, template, form, admin, auth, settings, testing, or async patterns, or debugging Django-specific behavior. Triggers on: "Django", "manage.py", "models.py", "ORM", "migration", "template tag", "Django admin", or any file inside a Django project layout. This is the reference skill — the mandatory workflow checklist lives in django-discipline.
Files
Django 6.0 Framework Reference
Route the task to the matching reference file below and read only what the task needs. Workflow enforcement — migrations, linting, N+1 prevention, import discipline, rename safety, testing guardrails — lives solely in the django-discipline skill, which applies to every change in a Django project alongside this reference.
Critical Gotchas
- Model field verification — Read the actual model definition before writing queries or test fixtures. Do not guess field names.
- auto_now=True bypass — Fields with
auto_now=Truecannot be set via.save(). Use.objects.filter().update(field=value)to override. - TemplateResponse for deferred rendering — Use
TemplateResponsewhen middleware must inspect or modify template context after the view returns. Userender()for simple views where context is final. - URL patterns are hierarchical — Child URLconf should NOT repeat the parent prefix. Catch-all patterns (
path("")) must be LAST inurlpatterns. - Template tags don't work in static files —
{{ var|safe }}and{% url ... %}are NOT processed in external.js/.cssfiles — they're served as static assets. Solutions: inline<script>config block, data attributes on DOM elements, or a JSON endpoint view. - JSON traps — Values stored in
TextFieldare strings; calljson.loads()before dictionary-style access. Django renders Python lists in templates as[\'item\'](single quotes); usejson.dumps()in the view context for valid JS/JSON. - Templates own markup — Inline HTML in Python is last resort and stays under ~60 characters (hard max 66) per indentation block; beyond that, move it into a template/include/partial.
- Form validation at the model level — Django forms inherit model validation. Define custom validation in model
clean()and formclean_*()methods.
Routing
| File | Use for |
references/models-orm.md | Defining models, querysets, migrations, ORM optimization |
references/views-urls.md | Building views, URL routing, class-based views |
references/templates.md | Creating or extending templates |
references/forms-validation.md | Building forms, validation, form rendering |
references/admin.md | Customizing Django admin |
references/auth-security.md | Authentication, permissions, security patterns |
references/settings-config.md | Settings, configuration, environment-specific setup |
references/testing.md | Writing tests (unit, integration, or E2E — includes Playwright/live_server pitfalls) |
references/middleware-signals.md | Middleware, signals, request/response cycle |
references/architecture.md | Project structure, patterns, architectural decisions |
references/async-tasks.md | Async views, tasks, celery, background jobs |
references/django6-new.md | Django 6.0 new features and deprecations |
references/internals.md | Django internals, metaprogramming, deep framework behavior |
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- microsoft/debugpy★ 2.5ksame name
- youlaitech/youlai-skills★ 56same name
- wsvincent/django-skills★ 32same name
- nimadorostkar/Claude-Skills-collection★ 29same name
- G1Joshi/Agent-Skills★ 15same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- gingerminds/claude-skills★ 2same name
- imankulov/skills★ 2same name
- Mariatta/claude-skills★ 2same name
- conjure-3301/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use vue and react.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JetBrainsSkillvue
Vue 3 Composition API, script setup macros, reactivity system, and built-in components. Use when writing Vue SFCs, defineProps/defineEmits/defineModel, watchers, or using Transition/Teleport/Suspense/KeepAlive.
Also in 4 projects that use this
VercelSkillreact
React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.
Also in 3 projects that use this
In this repository73 other files it gives its agents.
- agent/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- git-guardrails-claude-codeSkill
- setup-project-skillsSkill
- skill-creatorSkill
- websearchSkill
- writing-great-skillsSkill
- codebase-designSkill
- construction-craftSkill
- critical-partnerSkill
- data-intensiveSkill
- diagnosing-bugsSkill
- django-disciplineSkill
- docker-disciplineSkill
- documentation-lifecycleSkill
- domain-driven-designSkill
- enterprise-patternsSkill
- git-disciplineSkill
- legacy-codeSkill
- production-readinessSkill
- refactoring-passSkill
- resolving-merge-conflictsSkill
- tddSkill
- testing-workflowSkill
- ui-design-directionSkill
- webapp-testingSkill
- writing-for-agentsSkill
- django-allauthSkill
- dockerSkill
- drfSkill
- full-calendarSkill
- giteaSkill
- htmxSkill
- http-status-codesSkill
- hyperscriptSkill
- langchainSkill
- litestarSkill
- prestashopSkill
- prSkill
- pykeSkill
- python-asyncSkill
- tablerSkill
- cleanroom-rewriteSkill
- councilSkill
- court-jesterSkill
- domain-modelingSkill
- fix-prSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- humanifySkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- ponytail-auditSkill
- ponytail-debtSkill
- prototypeSkill
- qaSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

