Skip to main content

Installation

$ [sudo] pip install django-subcommands

Classes

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

Examples

management/commands/command.py

from django.core.management.base 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 manage.py command subcommand1

django-readme-generator

Release files for django-subcommands 2019.4.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-subcommands 2019.4.13
File Size Uploaded
django-subcommands-2019.4.13.tar.gz 1.8 kB Details

Release files / django-subcommands-2019.4.13.tar.gz

Download URL django-subcommands-2019.4.13.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
49926910632cb8043bda0bde35893421508b8a80f401f83e04a690baf9b132e0
BLAKE2b-256 checksum
How to use checksums
526dbe3b670ad3c21a70cc1d4e7df45093c805fb2d4b29783fb00c554d40cdeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

Release history Release notifications | RSS feed

This release

2019.4.13 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page