Django

Code

Ticket #2073 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: jpellerin@gmail.com Assigned to: adrian
Milestone: Component: django-admin.py
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

django_core_management.diff (0.5 kB) - added by jpellerin@gmail.com on 06/02/06 13:52:28.
Pass IPython.Shell.IPShell an empty argv

Change History

06/02/06 13:52:28 changed by jpellerin@gmail.com

  • attachment django_core_management.diff added.

Pass IPython.Shell.IPShell an empty argv

06/02/06 13:54:08 changed by jpellerin@gmail.com

  • 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.

06/02/06 15:52:36 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [3069].


Add/Change #2073 ([patch] './manage.py --settings=path.to.settings shell' fails when IPython is installed)




Change Properties
Action