1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

[1.3.X] Fixed #17078: properly invoke IPython 0.12.

Backport of r17379.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@17380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2012-01-19 17:39:59 +00:00
parent 9bc6119daf
commit 2b793b1a35

View File

@ -13,9 +13,8 @@ class Command(NoArgsCommand):
def ipython(self):
try:
from IPython.frontend.terminal.embed import TerminalInteractiveShell
shell = TerminalInteractiveShell()
shell.mainloop()
from IPython import embed
embed()
except ImportError:
# IPython < 0.11
# Explicitly pass an empty list as arguments, because otherwise