Code

Opened 7 years ago

Closed 7 years ago

#5179 closed (fixed)

Broken manage.py startapp

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

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@… 7 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 7 years ago by John Shaffer <jshaffer2112@…>

  • Component changed from Core framework to django-admin.py
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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

Changed 7 years ago by vsevolod.solovyov@…

comment:2 Changed 7 years ago by vsevolod.solovyov@…

  • Has patch set

Yes, you're right. I uploaded patch.

comment:3 Changed 7 years ago by russellm

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

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

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.