Kaydet (Commit) 427a54b4 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

Fixed #1719 -- Added rlcompleter autocompletion to 'manage.py shell' if IPython is not used.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst f94f0555
......@@ -1045,6 +1045,15 @@ def run_shell(use_plain=False):
shell.mainloop()
except ImportError:
import code
try: # Try activating rlcompleter, because it's handy.
import readline
except ImportError:
pass
else:
# We don't have to wrap the following import in a 'try', because
# we already know 'readline' was imported successfully.
import rlcompleter
readline.parse_and_bind("tab:complete")
code.interact()
run_shell.args = '[--plain]'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment