terminating Django bash allows you to tabulate the django-admin.py and manage.py commands in bash.
There are autocompletion scripts zshfor django, but they do not work with user commands. One of them is in the oh-my-zsh project .
I also know about bashcompinit, but it does not seem to work with django-admin, creating the following error:
./manage.py Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
self.autocomplete()
File "lib/python2.7/site-packages/django/core/management/__init__.py", line 266, in autocomplete
cwords = os.environ['COMP_WORDS'].split()[1:]
File "bin/../lib/python2.7/UserDict.py", line 23, in __getitem__
raise KeyError(key)
KeyError: 'COMP_WORDS'
Is it possible that Django bash will exit with zsh? Or there is another alternative that would allow the use of custom django admin commands.
source
share