Modify

Ticket #27 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

management --verbosity option conflicts with django core

Reported by: codysoyland@… Owned by: andrew
Priority: major Milestone:
Component: commands Version:
Keywords: Cc:

Description

Django changeset 9110 (http://code.djangoproject.com/changeset/9110) added --verbosity to BaseCommand?. South also has this option, so this cause a conflict that generates an exception on syncdb.

Here is the exception:

Traceback (most recent call last):

File "./manage.py", line 11, in <module>

execute_manager(settings)

File "/usr/lib/python2.5/site-packages/django/core/management/init.py", line 340, in execute_manager

utility.execute()

File "/usr/lib/python2.5/site-packages/django/core/management/init.py", line 295, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 192, in run_from_argv

parser = self.create_parser(argv[0], argv[1])

File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 175, in create_parser

option_list=self.option_list)

File "/usr/lib/python2.5/optparse.py", line 1215, in init

add_help=add_help_option)

File "/usr/lib/python2.5/optparse.py", line 1257, in _populate_option_list

self.add_options(option_list)

File "/usr/lib/python2.5/optparse.py", line 1040, in add_options

self.add_option(option)

File "/usr/lib/python2.5/optparse.py", line 1021, in add_option

self._check_conflict(option)

File "/usr/lib/python2.5/optparse.py", line 996, in _check_conflict

option)

optparse.OptionConflictError?: option --verbosity: conflicting option string(s): --verbosity

Attachments

verbosity.diff (1.7 KB) - added by codysoyland@… 6 years ago.
verbosity_fixes.diff (3.0 KB) - added by travis.cline@… 6 years ago.
Here's an improved patch that makes south actually pay attention to verbosity level. South is quite noisy when loading fixtures.
verbosity_fixes.2.diff (3.0 KB) - added by travis.cline@… 6 years ago.
Here's an improved patch that makes south actually pay attention to verbosity level. South is quite noisy when loading fixtures. (small fix)
migrate_verbosity_fix.patch (1.0 KB) - added by anonymous 5 years ago.

Change History

Changed 6 years ago by codysoyland@…

Changed 6 years ago by travis.cline@…

Here's an improved patch that makes south actually pay attention to verbosity level. South is quite noisy when loading fixtures.

Changed 6 years ago by travis.cline@…

Here's an improved patch that makes south actually pay attention to verbosity level. South is quite noisy when loading fixtures. (small fix)

comment:1 Changed 6 years ago by andrew

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

Yes, good idea. I've taken the patch, tweaked it so it works on pre-9110 Django installs (like mine) too, and committed it in [79].

Changed 5 years ago by anonymous

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.