Ticket #16483: shell_py.diff
File shell_py.diff, 652 bytes (added by , 13 years ago) |
---|
-
django/core/management/commands/shell.py
13 13 14 14 def ipython(self): 15 15 try: 16 from IPython.frontend.terminal.embed import TerminalInteractiveShell 17 shell = TerminalInteractiveShell() 18 shell.mainloop() 16 from IPython import embed 17 embed() 19 18 except ImportError: 20 19 # IPython < 0.11 21 20 # Explicitly pass an empty list as arguments, because otherwise