Fixed #17078: properly invoke IPython 0.12.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
203c4fef4d
commit
e8e4293a48
|
@ -13,9 +13,8 @@ class Command(NoArgsCommand):
|
||||||
|
|
||||||
def ipython(self):
|
def ipython(self):
|
||||||
try:
|
try:
|
||||||
from IPython.frontend.terminal.embed import TerminalInteractiveShell
|
from IPython import embed
|
||||||
shell = TerminalInteractiveShell()
|
embed()
|
||||||
shell.mainloop()
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# IPython < 0.11
|
# IPython < 0.11
|
||||||
# Explicitly pass an empty list as arguments, because otherwise
|
# Explicitly pass an empty list as arguments, because otherwise
|
||||||
|
|
Loading…
Reference in New Issue