Support subcommands in management commands
Project description
Documentation
The full documentation is at https://django-subcommand2.readthedocs.org.
Install
Install django-subcommand:
pip install django-subcommand2
Usage
# myapp.management.commands.parent_command.py from subcommand.base import SubcommandCommand from .subcommands.sub import MySubcommand class Command(SubcommandCommand): help = 'My Parent Command' subcommands = { 'sub': MySubcommand, # python manage.py parent_command sub } # myapp.management.commands.subcommands.sub.py from django.core.management.base import BaseCommand class MySubcommand(BaseCommand): help = 'My Sub Command'
History
0.1.0 (2015-10-02)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_subcommand2-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da1a4634be51cfa99bb24c04aa3f9c757c158d3ebfe52b4e7be24e7f54244fc3 |
|
MD5 | be0ef5dbdc8d894e0dd779a6f5ccca10 |
|
BLAKE2b-256 | bd87e8aa8151eb6205817404d94fb28efb63e6cda1fbcea5dafef512f5e55d72 |