Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2073 -- Improved ' shell' not to pass argv to IPython…

… if it's installed. Thanks,

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 88d215f7021ff085cc1420236a721a286e548ce4 1 parent 674773b
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/core/
4 django/core/
@@ -1055,7 +1055,9 @@ def run_shell(use_plain=False):
# Don't bother loading IPython, because the user wants plain Python.
raise ImportError
import IPython
- shell = IPython.Shell.IPShell()
+ # Explicitly pass an empty list as arguments, because otherwise IPython
+ # would use sys.argv from this script.
+ shell = IPython.Shell.IPShell(argv=[])
except ImportError:
import code
Please sign in to comment.
Something went wrong with that request. Please try again.