Catalog / Skills

Django Forms Validation TDD

Test-drive Django validation across model constraints, forms, ModelForms, views, template errors, duplicate handling, and redirects. Use when adding or refactoring Django forms, surfacing validation errors, deciding model-vs-form-vs-view responsibility, or preventing invalid input from being saved.

Djangov0.1.0MITdjangotddformsvalidationtesting

Install

npx skills add LVTD-LLC/skills --skill django-forms-validation-tdd

From `SKILL.md`

Use this skill to place validation tests at the layer that owns the rule, then prove the user-facing error path still works. Django validation often crosses model, form, view, and template boundaries; keep those responsibilities explicit.