Opened 18 years ago

Closed 18 years ago

Last modified 18 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 Holovaty
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: no UI/UX: no

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@… 18 years ago.
Pass IPython.Shell.IPShell an empty argv

Download all attachments as: .zip

Change History (3)

by jpellerin@…, 18 years ago

Attachment: django_core_management.diff added

Pass IPython.Shell.IPShell an empty argv

comment:1 by jpellerin@…, 18 years ago

Summary: './manage.py --settings=path.to.settings shell' fails when IPython is installed[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 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in [3069].

Note: See TracTickets for help on using tickets.
Back to Top