core.management.BaseCommand

class BaseCommand [source]

The base class from which all management commands ultimately derive.

Use this class if you want access to all of the mechanisms which parse the command-line arguments and work out what code to call in response; if you don’t need to change any of that behavior, consider using one of its subclasses.

Subclassing the BaseCommand class requires that you implement the handle() method.

doc_Django
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.