Ticket #5082: django-management-completion.patch
File django-management-completion.patch, 767 bytes (added by , 17 years ago) |
---|
-
core/management.py
1300 1300 shell.mainloop() 1301 1301 except ImportError: 1302 1302 import code 1303 world = {} 1303 1304 try: # Try activating rlcompleter, because it's handy. 1304 1305 import readline 1305 1306 except ImportError: … … 1309 1310 # we already know 'readline' was imported successfully. 1310 1311 import rlcompleter 1311 1312 readline.parse_and_bind("tab:complete") 1312 code.interact() 1313 readline.set_completer(rlcompleter.Completer(world).complete) 1314 code.interact(local=world) 1313 1315 run_shell.args = '[--plain]' 1314 1316 1315 1317 def dbshell():