Ticket #16483: shell_py.diff

File shell_py.diff, 652 bytes (added by croach, 4 years ago)

Fixes manage.py shell support for IPython 0.11rc2

  • django/core/management/commands/shell.py

     
    1313
    1414    def ipython(self):
    1515        try:
    16             from IPython.frontend.terminal.embed import TerminalInteractiveShell
    17             shell = TerminalInteractiveShell()
    18             shell.mainloop()
     16            from IPython import embed
     17            embed()
    1918        except ImportError:
    2019            # IPython < 0.11
    2120            # Explicitly pass an empty list as arguments, because otherwise
Back to Top