Ticket #18204: embed-ipython-module.2.diff
File embed-ipython-module.2.diff, 647 bytes (added by , 13 years ago) |
---|
-
django/core/management/commands/shell.py
diff --git a/django/core/management/commands/shell.py b/django/core/management/commands/shell.py index 26cbd7f..3c2b8e9 100644
a b class Command(NoArgsCommand): 13 13 14 14 def ipython(self): 15 15 try: 16 from IPython import embed17 e mbed()16 # embed() needs to run in its own global context. See #18204 17 exec "from IPython import embed; embed()" in globals() 18 18 except ImportError: 19 19 # IPython < 0.11 20 20 # Explicitly pass an empty list as arguments, because otherwise