🧠 Django and python workspace Auto-Import
Smart, context-aware auto-imports for Python workspace and Django in VS Code.
Auto-suggest and import Django symbols and your project's models, views, forms, utils, decorators, and more — right as you type.
For Python workspace
, Django
, DRF-Django Rest Framework
& organize imports
🚀 Features
🔄 Smart Django Auto-Imports
Automatically imports common Django symbols like Model
, HttpResponse
, render
, Paginator
, etc.
🏢 Python Workspace File Support
Now suggests imports from your project files like models.py
, admins.py
, and urls.py
etc..
🏢 Intelligent organize Import
Organize import symbols and method in order by library and local
🔍 Fuzzy Matching
Type partial names like http
, get accurate suggestions like HttpResponse
.
🧠 Context-Aware Suggestions
Avoids bad suggestions in Django-specific scopes like Meta
classes or urls.py
.
🧹 Clean Import Merging
Merges multiple symbols from the same module into a single import line — no clutter.
🧩 Python-Only Activation
Activates only in .py
files to stay lightweight and distraction-free.
Workspace and Django built-in import Preview

Fuzzy suggestion

📦 Installation
Install from the Visual Studio Marketplace or directly inside VS Code:
- Open the Extensions sidebar (
Cmd+Shift+X
/ Ctrl+Shift+X
)
- Search for
Django Auto-Import
or django-auto-import
- Click Install
⚙️ Usage
Just start typing any known Django class, function, or utility in a Python file:
Model
→ auto-imports from django.db import models
HttpResponse
, Paginator
, render
, etc. → instant suggestions
- Works seamlessly with multi-symbol imports like:
from django.core.paginator import Paginator, EmptyPage
You don’t need to trigger anything manually — it just works as you code.
🤔 Why Use This?
Writing Django can be repetitive. This extension saves you time by:
- Reducing boilerplate typing
- Avoiding manual lookups or remembering exact modules
- Keeping imports clean and grouped
- Letting you focus on logic, not syntax
Ideal for rapid development, prototyping, and long-form Django projects.
🛠️ Configuration
No configuration required. Just install and code.
📄 License
MIT © [Rahad Rahman]