load_command_class
Given a command name and an application name, return the Command class instance. Allow all errors raised by the import process (ImportError, AttributeError) to propagate.
def load_command_class(
app_name: string,
name: string
) - > object
Given a command name and an application name, return the Command class instance. Allow all errors raised by the import process (ImportError, AttributeError) to propagate.
Parameters
| Name | Type | Description |
|---|---|---|
| app_name | string | The name of the application containing the management commands. |
| name | string | The specific name of the command module to be imported and instantiated. |
Returns
| Type | Description |
|---|---|
object | An instance of the Command class loaded from the specified application's management module. |