#31035: Promote BaseCommand.run_from_argv to a documented method
-----------------------------------------+------------------------
Reporter: Roman Odaisky | Owner: nobody
Type: New feature | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
It is sometimes useful to use django-admin commands without argparse. The
most obvious reason for that would be to forward the arguments to another
CLI app that parses its own arguments. For example:
{{{
class Command(BaseCommand):
def run_from_argv(self, argv):
celery.bin.celery.main([argv[0], *argv[2:]]) # can now access
django.conf.settings
}}}
Please update the documentation to make overriding run_from_argv a
supported way of implementing a management command.
--
Ticket URL: <https://code.djangoproject.com/ticket/31035>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.6f66c0d0287ba0c684d11356aa55b0e1%40djangoproject.com.