Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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.3.13
Filename, size File type Python version Upload date Hashes
Filename, size django_subcommands-2019.3.13-py2.py3-none-any.whl (2.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-subcommands-2019.3.13.tar.gz (1.6 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