Command
This class creates a Django app directory structure for a specified application name in the current directory or a provided target directory. It handles the initial setup of application files by leveraging a template-based command execution pattern. The class requires an application name as a mandatory argument to proceed with the generation process.
Attributes
| Attribute | Type | Description |
|---|---|---|
| help | string | Creates a Django app directory structure for the given app name in the current directory or optionally in the given directory. |
| missing_args_message | string | You must provide an application name. |
Methods
handle()
@classmethod
def handle(
**options: dict
) - > null
Creates a Django app directory structure for the given app name in the current directory or optionally in the given directory.
Parameters
| Name | Type | Description |
|---|---|---|
| **options | dict | A dictionary of command-line arguments containing 'name' for the application name, 'directory' for the destination path, and other configuration flags for the template engine. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the method performs file system operations to generate the application structure. |