#2073 closed defect (fixed)
[patch] './manage.py --settings=path.to.settings shell' fails when IPython is installed
Reported by: | 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)
Change History (3)
by , 18 years ago
Attachment: | django_core_management.diff added |
---|
comment:1 by , 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.
Note:
See TracTickets
for help on using tickets.
Pass IPython.Shell.IPShell an empty argv