Opened 17 years ago

Closed 17 years ago

#5179 closed (fixed)

Broken manage.py startapp

Reported by: vsevolod.solovyov@… Owned by: Adrian Holovaty
Component: Core (Management commands) Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

After [5898] manage.py startapp is broken. Error looks very magically, as for me:

D:\test>manage.py startapp main
Traceback (most recent call last):
  File "D:\test\manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Python25\lib\site-packages\django\core\management\__init__.py", line 180, in execute_manager
    utility.execute(argv)
  File "C:\Python25\lib\site-packages\django\core\management\__init__.py", line 124, in execute
    command.execute(*args[1:], **options.__dict__)
  File "C:\Python25\lib\site-packages\django\core\management\base.py", line 33, in execute
    output = self.handle(*args, **options)
TypeError: handle() got an unexpected keyword argument 'indent'

But startapp.handle() has options.

Attachments (1)

r5898.diff (526 bytes ) - added by vsevolod.solovyov@… 17 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by John Shaffer <jshaffer2112@…>, 17 years ago

Component: Core frameworkdjango-admin.py
Triage Stage: UnreviewedAccepted

The Command.handle method does take options, but ProjectCommand.handle does not.

by vsevolod.solovyov@…, 17 years ago

Attachment: r5898.diff added

comment:2 by vsevolod.solovyov@…, 17 years ago

Has patch: set

Yes, you're right. I uploaded patch.

comment:3 by Russell Keith-Magee, 17 years ago

Resolution: fixed
Status: newclosed

(In [5901]) Fixed #5179 -- Added missing kwargs to startapp command. Thanks for the report, Vsevolod Solovyov <vsevolod.solovyov@…>.

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