Skip to main content

Django subcommands

Project description


$ [sudo] pip install django-subcommands


class __doc__
django_subcommands.SubCommands SubCommands class. attrs: subcommands (dict)



from import BaseCommand
import django_subcommands

class SubCommand1(BaseCommand):
    def handle(self, *args, **options):

class SubCommand2(BaseCommand):
    def handle(self, *args, **options):

class Command(django_subcommands.SubCommands):
    subcommands = {"subcommand1": SubCommand1,"subcommand2":SubCommand2}
$ python command subcommand1


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-subcommands, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size django-subcommands-2019.4.13.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page