Skip to main content

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

AttributeTypeDescription
helpstringCreates a Django app directory structure for the given app name in the current directory or optionally in the given directory.
missing_args_messagestringYou 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

NameTypeDescription
**optionsdictA 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

TypeDescription
nullNothing is returned; the method performs file system operations to generate the application structure.