Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Django IDE ExtensionNew to Visual Studio Code? Get it now.
Django IDE Extension

Django IDE Extension

django-ide

|
1 install
| (0) | Free
Smart Django templates and Python views integration with LSP
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Django IDE Extension

Bring PyCharm-like productivity to your Django templates and Python views inside VS Code. This extension leverages a high-performance Rust-powered Language Server (LSP) to offer deep, static analysis and smart integration between your Django back-end views and HTML templates.

Features

⚡ Smart Context Auto-completion

Get autocompletes for context variables in your Django templates. As you type {{, the extension looks up which views render this template and extracts the context variables dynamically.

  • Variable Fields: Autocomplete properties on context variables (e.g., {{ user. suggests .username, .email).
  • Tags & Filters: Complete common Django template filters (|lower, |default) and blocks.

🔍 Instant View-to-Template Navigation

  • Go to Template: Press Ctrl + Click on a template path string in Python (e.g. render(request, "home.html")) to jump directly to the HTML file.
  • Go to View: Use the Django: Go to View command in an HTML template to quickly see and navigate to all Python views that render this template.

📚 Hover Documentation

Hover over variables inside Django templates to see where they were defined, what view they came from, and their inferred type/details.


How it Works

The extension operates with a modern Client-Server LSP architecture:

  1. TypeScript Client: Communicates with VS Code APIs, intercepts user inputs, and manages language settings.
  2. Rust Server: Uses tree-sitter and ruff_python_ast to index views, map routing, resolve Class-Based Views (CBVs) inheritance, and dynamically build a context model for your templates.

Configuration

The extension requires the standard MS-Python extension to resolve active virtual environments automatically. You can also customize template search directories and configurations.


License

This project is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft