debug:django
Installation
SKILL.md
Django Debugging Guide
Overview
Django debugging requires understanding the framework's layered architecture: settings, URL routing, views, templates, models, and middleware. Effective debugging follows a systematic approach - reproducing the bug, isolating the problem, gathering evidence, and implementing verified fixes.
Key principles:
- Reproduce first: Repeat the exact steps that cause the issue
- Isolate systematically: Identify the exact module, function, or code path
- Gather evidence: Collect error messages, stack traces, logs, and database state
- Test your fix: Verify the solution with automated tests
Common Error Patterns
TemplateDoesNotExist
Cause: Django cannot find the specified template file.