#29448: Create management command management command
-------------------------------------+-------------------------------------
Reporter: Katie McLaughlin | Owner: Katie
| McLaughlin
Type: New feature | Status: closed
Component: Core (Management | Version: 2.0
commands) |
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):
* status: assigned => closed
* resolution: => wontfix
Comment:
I feel this one.
It's not that the instructions are good/correct, it's that "Ooo, I can
make a management command" leads straight to, "Oh, I have to create a
folder, and an `__init__.py`, Oh and another folder, Oh and another
`__init__.py`.
And then it's, "Oh, hang on, what are the imports?" and "What do I have to
subclass?" and "What methods do I need to implement?".
It's a real pain.
I'm going to say `wontfix` on this though, since [https://django-
extensions.readthedocs.io/en/latest/command_extensions.html Django
Extensions already implements a `create_command` command], which sets up
the folders and puts a command scaffolding in ([https://github.com/django-
extensions/django-
extensions/blob/master/django_extensions/conf/command_template/management/commands/sample.py.tmpl
that looks like this]).
That does the job perfectly. I don't think we can improve.
_Maybe_ pulling it into core, but the whole point of Django Extensions is
that useful stuff lives there that we haven't (and may or may not pull
in). As a community we should make sure users know it exists, since it's
great.
I hope that's fair. Katie, if you still think, "Yes, this should be in
core" then please follow up on Django Developers and we can discuss.
--
Ticket URL: <https://code.djangoproject.com/ticket/29448#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.0fb22302e54d92022104b6df173478ec%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.