Django command auto completion
Tab completion
In order to add tab completion of django-admin.py and manage.py commands we can use django_bash_completion
file
https://github.com/django/django/blob/master/extras/django_bash_completion
How to use it
Download it to your home directory and save it as
.django_bash_completion
(hidden file in your home directory~/.django_bash_completion
)You can directly download it from here
https://raw.githubusercontent.com/django/django/master/extras/django_bash_completionadd following lines to your ~/.bash_profile
. $HOME/.django_bash_completion
- Now type
django-admin.py start <tab>
it will suggest all the commands available with start
Written by eranga bandara
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#