Code

Ticket #17078: shell_py.diff

File shell_py.diff, 695 bytes (added by matveym, 2 years ago)
Line 
1Index: django/core/management/commands/shell.py
2===================================================================
3--- django/core/management/commands/shell.py    (revision 17016)
4+++ django/core/management/commands/shell.py    (working copy)
5@@ -14,7 +14,9 @@
6     def ipython(self):
7         try:
8             from IPython.frontend.terminal.embed import TerminalInteractiveShell
9-            shell = TerminalInteractiveShell()
10+            from IPython.frontend.terminal.ipapp import load_default_config
11+            config = load_default_config()
12+            shell = TerminalInteractiveShell(config=config)
13             shell.mainloop()
14         except ImportError:
15             # IPython < 0.11