summaryrefslogtreecommitdiff
path: root/django/core/management/commands/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/core/management/commands/shell.py')
-rw-r--r--django/core/management/commands/shell.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/django/core/management/commands/shell.py b/django/core/management/commands/shell.py
index e4ce462c20..039ebb8d5d 100644
--- a/django/core/management/commands/shell.py
+++ b/django/core/management/commands/shell.py
@@ -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