django-completion
Project-aware tab completion for Django's manage.py.
Press Tab to complete your project's own management commands and their flags — plus app labels and migration targets — in bash and zsh. On a project with dozens of custom commands, nobody remembers every name and argument signature; django-completion introspects them from your actual project.
Installation
Note: this is the pip-installable, project-aware tool. The
django-completionHomebrew formula is an unrelated static bash completion script.
Install it in the same environment as your Django project:
pip install django-completion
# or
uv add django-completion
Add the app:
INSTALLED_APPS = [
...
"django_completion",
]
Install the shell hook:
python manage.py autocomplete install
Then restart your terminal or reload your shell config:
source ~/.bashrc # bash
source ~/.zshrc # zsh
What Completes
The completion cache is built from your project at runtime, so it covers your custom management commands the same way it covers Django's built-ins:
python manage.py imp<TAB> # → import_articles
python manage.py import_articles --<TAB> # → --dry-run --limit --since --source ...
Supported invocation styles:
manage.py <TAB>
python manage.py <TAB>
python3 manage.py <TAB>
python ./manage.py <TAB>
uv run python manage.py <TAB>
Completion depth:
- command names after
manage.py— built-in, third-party, and your project's custom commands - option flags for every command, introspected from each command's actual argparse parser
- app labels for
migrate,check,dumpdata,test, andmakemigrations migrateapp labels filtered to apps that have migrations- migration names and
zeroafterpython manage.py migrate app_label - command and option descriptions in zsh where available
Django's built-in completion covers command names and option flags — it has no knowledge of your app labels, migration names, or project-specific targets. django-completion fills that gap. See comparison with Django's built-in completion for a full feature breakdown.
Commands
python manage.py autocomplete status
python manage.py autocomplete status --verbose
python manage.py autocomplete refresh
python manage.py autocomplete uninstall
status --verbose is the best first diagnostic when completion behaves unexpectedly. It reports the cache path, schema version, migration counts, warning count, shell hooks, installed script versions, and package version.
refresh rebuilds .django-completion-cache.json manually. The cache also refreshes automatically after manage.py commands with a 60-second cooldown. To disable auto-refresh:
DJANGO_COMPLETION_AUTO_REFRESH = False
Compatibility
| Area | Supported |
|---|---|
| Python | 3.10+ |
| Django | 4.2+ |
| Shells | bash, zsh |
| OS | Linux and macOS expected |
| Windows | not officially supported; WSL with bash/zsh may work |
| Invocations | manage.py, python manage.py, python3 manage.py, python ./manage.py, uv run python manage.py |
| Completion depth | commands (including custom), option flags, app labels, migrate app labels, migration names |
Safety and Privacy
- No telemetry.
- No network calls.
- Tab completion reads only the local cache file.
- Tab completion does not import Django.
- Tab completion does not touch the database.
- The cache is local runtime state in the project root.
- The cache contains command names, app labels, option names/help, migration names, warnings, and timestamps.
- Shell rc edits are marker-delimited and reversible.
autocomplete uninstallremoves managed shell hooks and managed scripts.- The package has no middleware, models, migrations, or request-time behavior.
For teams that prefer strict production settings:
if DEBUG:
INSTALLED_APPS += ["django_completion"]
DEBUG is not always the right environment switch; separate settings modules or a custom environment flag may fit your deployment process better.
Limitations
- bash and zsh only; fish is planned for a later release
- no
django-adminsupport - no official native Windows or PowerShell support
- no global options before command, such as
python manage.py --settings config.settings migrate - no custom alias support, such as
dj migrate - no database-aware applied/unapplied migration filtering
Roadmap
Near-term candidates include more wrapper support, better Docker-oriented examples, fish shell support, and additional command-specific completion rules.
Long term, the goal is to learn from real-world usage and explore whether parts of this approach could inform Django's own management-command completion story.
Documentation
Full documentation is at https://soldatov-ss.github.io/django-completion/.
Development
git clone git@github.com:soldatov-ss/django-completion.git
cd django-completion
uv sync
uv run pytest -q
uv run ruff check .
uv run ty check
django-completion was created in 2026 by Soldatov Serhii.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_completion-0.2.12.tar.gz.
File metadata
- Download URL: django_completion-0.2.12.tar.gz
- Upload date:
- Size: 43.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b06dafc2e89f0203e9c9ccadb67d88770e04ffe47a5f85fb635738a08482dcc7
|
|
| MD5 |
d4f6409fd981997fc4a8b09797d273c0
|
|
| BLAKE2b-256 |
f5dd76ca8de61bb863cb103fabeb603437c3bc840775e6a98b407edf142eb5e7
|
Provenance
The following attestation bundles were made for django_completion-0.2.12.tar.gz:
Publisher:
publish.yml on soldatov-ss/django-completion
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_completion-0.2.12.tar.gz -
Subject digest:
b06dafc2e89f0203e9c9ccadb67d88770e04ffe47a5f85fb635738a08482dcc7 - Sigstore transparency entry: 2082158910
- Sigstore integration time:
-
Permalink:
soldatov-ss/django-completion@577a83e3c679e4dd05592d07ac93425bed85505f -
Branch / Tag:
refs/tags/v0.2.12 - Owner: https://github.com/soldatov-ss
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@577a83e3c679e4dd05592d07ac93425bed85505f -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_completion-0.2.12-py3-none-any.whl.
File metadata
- Download URL: django_completion-0.2.12-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4278badd82f0b139173b00bacbfb1a68a91c3960ac987e5d8fc79ba8f37fbb69
|
|
| MD5 |
9290b5975f0ec9d8cbd3236da0622ec9
|
|
| BLAKE2b-256 |
780d6f70c8ad11eb481c66a17b8a9e712dd20c2fd9684aae6ec097250814441b
|
Provenance
The following attestation bundles were made for django_completion-0.2.12-py3-none-any.whl:
Publisher:
publish.yml on soldatov-ss/django-completion
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_completion-0.2.12-py3-none-any.whl -
Subject digest:
4278badd82f0b139173b00bacbfb1a68a91c3960ac987e5d8fc79ba8f37fbb69 - Sigstore transparency entry: 2082158916
- Sigstore integration time:
-
Permalink:
soldatov-ss/django-completion@577a83e3c679e4dd05592d07ac93425bed85505f -
Branch / Tag:
refs/tags/v0.2.12 - Owner: https://github.com/soldatov-ss
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@577a83e3c679e4dd05592d07ac93425bed85505f -
Trigger Event:
push
-
Statement type: