Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2073 closed defect (fixed)

[patch] './manage.py --settings=path.to.settings shell' fails when IPython is installed

Reported by: jpellerin@… Owned by: adrian
Component: Core (Management commands) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The reason is that manage.py currently lets IPython look at sys.argv for it's options, but sys.argv is populated with options for manage.py itself, which IPython doesn't recognize.

Attachments (1)

django_core_management.diff (541 bytes) - added by jpellerin@… 8 years ago.
Pass IPython.Shell.IPShell an empty argv

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by jpellerin@…

Pass IPython.Shell.IPShell an empty argv

comment:1 Changed 8 years ago by jpellerin@…

  • Summary changed from './manage.py --settings=path.to.settings shell' fails when IPython is installed to [patch] './manage.py --settings=path.to.settings shell' fails when IPython is installed

Patch attached that just passes [] to IPython.Shell.IPShell. It would be nicer to allow passing options to IPython that it might recognize, but then django's option parser would have to pass through all unrecognized options, which is a recipe for user annoyance, so it might be too great a price to pay.

comment:2 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [3069].

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.