[Django] #25264: Misleading

21 views
Skip to first unread message

Django

unread,
Aug 12, 2015, 5:17:23 AM8/12/15
to django-...@googlegroups.com
#25264: Misleading
--------------------------------------------+--------------------
Reporter: mlorant | Owner: nobody
Type: Bug | Status: new
Component: Core (Management commands) | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------------+--------------------
Every commands has some options available, since the `BaseCommand`
initialize some options to the options parser: verbosity, settings,
traceback..

However, this can be misleading, because these arguments are not used by
every commands and sometimes this choice is ''by design''. For example,
the `runserver` command does not use the `verbosity` option, and it has
been explained why only there: https://code.djangoproject.com/ticket/15132

I think the framework should not show generic options that are not used in
the current commands (through an explicit list of generic options ignored
or an explicit list of commands used ?)

--
Ticket URL: <https://code.djangoproject.com/ticket/25264>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 12, 2015, 5:26:41 AM8/12/15
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------

Reporter: mlorant | Owner: nobody
Type: Bug | Status: new
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by mlorant):

* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:1>

Django

unread,
Aug 12, 2015, 9:39:27 AM8/12/15
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: mlorant | Owner: nobody
Type: | Status: new
Cleanup/optimization |

Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* type: Bug => Cleanup/optimization
* stage: Unreviewed => Accepted


Comment:

I don't know that this is a big problem that is worth changing, but I
guess if someone wants to propose a patch to fix the issue for
`runserver`, we could entertain it. The documentation says these options
are "[https://docs.djangoproject.com/en/1.8/ref/django-admin/#default-
options available on all options]" so this would require an update too.
One consideration is that subclasses of `runserver` might use these
options (`verbosity` most likely) so removing them by default would be
backwards incompatible.

--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:2>

Django

unread,
May 14, 2021, 2:53:47 AM5/14/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Core (Management | Version: dev

commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by David Smith):

* easy: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:3>

Django

unread,
Jun 14, 2021, 9:43:53 PM6/14/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Edald123
Type: | Status: assigned

Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Edald123):

* owner: nobody => Edald123
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:4>

Django

unread,
Jul 5, 2021, 11:40:49 AM7/5/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: (none)
Type: | Status: new

Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Edald123):

* owner: Edald123 => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:5>

Django

unread,
Jul 7, 2021, 10:11:30 AM7/7/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Yuneui
Type: | Jeong
Cleanup/optimization | Status: assigned

Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Yuneui Jeong):

* owner: (none) => Yuneui Jeong


* status: new => assigned


Comment:

Can I have a look at and work on this ticket? This is my first
contribution, but I'll try my best.

--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:6>

Django

unread,
Jul 8, 2021, 8:38:55 AM7/8/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Yuneui
Type: | Jeong
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Yuneui Jeong):

Here's the PR for this ticket: https://github.com/django/django/pull/14612

--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:7>

Django

unread,
Jul 8, 2021, 8:47:39 AM7/8/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Yuneui
Type: | Jeong
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Yuneui Jeong):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:8>

Django

unread,
Jul 9, 2021, 2:19:43 AM7/9/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Yuneui
Type: | Jeong
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:9>

Django

unread,
Jul 9, 2021, 5:47:12 AM7/9/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Yuneui
Type: | Jeong
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 1 => 0
* has_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:10>

Django

unread,
Jul 14, 2021, 10:22:25 PM7/14/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: (none)
Type: | Status: new
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Yuneui Jeong):

* owner: Yuneui Jeong => (none)


* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:11>

Django

unread,
Jul 24, 2021, 12:09:19 PM7/24/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Jan Szoja
Type: | Status: assigned

Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jan Szoja):

* owner: (none) => Jan Szoja


* status: new => assigned


Comment:

That shounds like nice and easy ticket for the beginner like myself.
I will start with allowing setting argparse.SUPPRESS(as suggester in PR)
in BaseCommand and possibly more advance way to tell which default
commands are supported. Will see.

--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:12>

Django

unread,
Jul 24, 2021, 9:06:37 PM7/24/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Jan Szoja
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jan Szoja):

* cc: Jan Szoja (added)


* has_patch: 0 => 1


Comment:

Pull Request awailable at:
https://github.com/django/django/pull/14694

I've added new attribute to BaseCommand class, which allows to disable any
option/argument predefined in BaseCommand.create_parser.
All tests passed for admin_scripts.

--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:13>

Django

unread,
Jul 26, 2021, 6:01:24 AM7/26/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Jan Szoja
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1

* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:14>

Django

unread,
Jul 29, 2021, 1:57:27 AM7/29/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Jan Szoja
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1

Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_docs: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:15>

Django

unread,
Jul 29, 2021, 9:36:24 PM7/29/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Jan Szoja
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jan Szoja):

* needs_docs: 1 => 0
* needs_tests: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:16>

Django

unread,
Aug 26, 2021, 4:55:06 PM8/26/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Jan Szoja
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jan Szoja):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:17>

Django

unread,
Aug 31, 2021, 4:47:48 AM8/31/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Jan Szoja
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* easy: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:18>

Django

unread,
Aug 31, 2021, 7:34:30 AM8/31/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Jan Szoja
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"3cca5fdd3eb5906a385adaf9872581d4ed359041" 3cca5fdd]:
{{{
#!CommitTicketReference repository=""
revision="3cca5fdd3eb5906a385adaf9872581d4ed359041"
Refs #25264 -- Doc's that not all default options are supported by every
management command.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:19>

Django

unread,
Aug 31, 2021, 7:34:31 AM8/31/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Jan Szoja
Type: | Status: assigned
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"97f377cd3520794f7d4e97b7aa1fa2093c426273" 97f377c]:
{{{
#!CommitTicketReference repository=""
revision="97f377cd3520794f7d4e97b7aa1fa2093c426273"
Refs #25264 -- Added test for command --help output with default options
and custom arguments.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:20>

Django

unread,
Aug 31, 2021, 7:34:31 AM8/31/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Jan Szoja
Type: | Status: closed

Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"b667ac24ead73300c49e265201b6c0b913ee36a3" b667ac2]:
{{{
#!CommitTicketReference repository=""
revision="b667ac24ead73300c49e265201b6c0b913ee36a3"
Fixed #25264 -- Allowed suppressing base command options in --help output.

This also suppresses -verbosity and --trackback options in the
runserver's help.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:21>

Django

unread,
Aug 31, 2021, 7:35:20 AM8/31/21
to django-...@googlegroups.com
#25264: Misleading list of options available for manage.py commands
-------------------------------------+-------------------------------------
Reporter: Maxime Lorant | Owner: Jan Szoja
Type: | Status: closed
Cleanup/optimization |
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"4e55806720f623f08ced65bf5927780ea210a80e" 4e55806]:
{{{
#!CommitTicketReference repository=""
revision="4e55806720f623f08ced65bf5927780ea210a80e"
[3.2.x] Refs #25264 -- Doc's that not all default options are supported by
every management command.

Backport of 3cca5fdd3eb5906a385adaf9872581d4ed359041 from main
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25264#comment:22>

Reply all
Reply to author
Forward
0 new messages