Index: core/management/commands/shell.py
===================================================================
--- core/management/commands/shell.py	(revision 12271)
+++ core/management/commands/shell.py	(working copy)
@@ -24,9 +24,12 @@
                 # Don't bother loading IPython, because the user wants plain Python.
                 raise ImportError
             import IPython
-            # Explicitly pass an empty list as arguments, because otherwise IPython
-            # would use sys.argv from this script.
-            shell = IPython.Shell.IPShell(argv=[])
+            try:
+                # Explicitly pass an empty list as arguments, because otherwise IPython
+                # would use sys.argv from this script.
+                shell = IPython.Shell.IPShell(argv=[])
+            except AttributeError:
+                shell = IPython.InteractiveShell()
             shell.mainloop()
         except ImportError:
             import code
