django-checkStatic N+1 query detection for Django, directly in VS Code. This extension runs a bundled static analyzer to detect common N+1 query patterns before runtime. It analyzes Django ORM usage and reports missing No runtime hooks. No configuration. No external dependencies. What it does
What it detectsRelated-field access inside QuerySet iteration without prefetching:
Example
Diagnostic:
Fix:
The diagnostic is cleared once the relation is prefetched. InstallationInstall the extension from the VS Code Marketplace. The analyzer binary is bundled with the extension. Nothing to install. Nothing to configure. UsageOpen a Django project in VS Code. The language server starts automatically when a project root is detected via:
Diagnostics appear as you edit Python files. LimitationsThis project is under active development. Current limitations include:
Expect false positives and false negatives. ReferenceAnalyzer and language server source: https://github.com/richardhapb/django-check (The extension bundles the binary; the link is for reference only.) LicenseMIT |