class documentation

Copy either a Django application layout template or a Django project layout template into the specified directory. :param style: A color style object (see django.core.management.color). :param app_or_project: The string 'app' or 'project'. :param name: The name of the application or project. :param directory: The directory to which the template should be copied. :param options: The additional variables passed to project or app templates

Method add_arguments Entry point for subclassed commands to add custom arguments.
Method apply_umask Undocumented
Method download Download the given URL and return the file name.
Method extract Extract the given file to a temporary directory and return the path of the directory with the extracted content.
Method handle The actual logic of the command. Subclasses must implement this method.
Method handle_template Determine where the app or project templates are. Use django.__path__[0] as the default because the Django install directory isn't known.
Method is_url Return True if the name looks like a URL.
Method make_writeable Make sure that the file is writeable. Useful if our source is read-only.
Method splitext Like os.path.splitext, but takes off .tar, too
Method validate_name Undocumented
Class Variable requires_system_checks Undocumented
Class Variable rewrite_template_suffixes Undocumented
Class Variable url_schemes Undocumented
Instance Variable a_or_an Undocumented
Instance Variable app_or_project Undocumented
Instance Variable paths_to_remove Undocumented
Instance Variable verbosity Undocumented

Inherited from BaseCommand:

Method __init__ Undocumented
Method add_base_argument Call the parser's add_argument() method, suppressing the help text according to BaseCommand.suppressed_base_arguments.
Method check Use the system check framework to validate entire Django project. Raise CommandError for any serious message (error or critical errors). If there are only light messages (like warnings), print them to stderr and don't raise an exception.
Method check_migrations Print a warning if the set of migrations on disk don't match the migrations in the database.
Method create_parser Create and return the ``ArgumentParser`` which will be used to parse the arguments to this command.
Method execute Try to execute this command, performing system checks if needed (as controlled by the ``requires_system_checks`` attribute, except if force-skipped).
Method get_version Return the Django version, which should be correct for all built-in Django commands. User-supplied commands can override this method to return their own version.
Method print_help Print the help message for this command, derived from ``self.usage()``.
Method run_from_argv Set up any environment changes requested (e.g., Python path and Django settings), then run this command. If the command raises a ``CommandError``, intercept it and print it sensibly to stderr. If the ``--traceback`` option is present or the raised ``Exception`` is not ``CommandError``, raise it.
Class Variable base_stealth_options Undocumented
Class Variable help Undocumented
Class Variable output_transaction Undocumented
Class Variable requires_migrations_checks Undocumented
Class Variable stealth_options Undocumented
Class Variable suppressed_base_arguments Undocumented
Instance Variable stderr Undocumented
Instance Variable stdout Undocumented
Instance Variable style Undocumented
Instance Variable _called_from_command_line Undocumented
def add_arguments(self, parser): (source)

Entry point for subclassed commands to add custom arguments.

def apply_umask(self, old_path, new_path): (source)

Undocumented

def download(self, url): (source)

Download the given URL and return the file name.

def extract(self, filename): (source)

Extract the given file to a temporary directory and return the path of the directory with the extracted content.

def handle(self, app_or_project, name, target=None, **options): (source)

The actual logic of the command. Subclasses must implement this method.

def handle_template(self, template, subdir): (source)

Determine where the app or project templates are. Use django.__path__[0] as the default because the Django install directory isn't known.

def is_url(self, template): (source)

Return True if the name looks like a URL.

def make_writeable(self, filename): (source)

Make sure that the file is writeable. Useful if our source is read-only.

def splitext(self, the_path): (source)

Like os.path.splitext, but takes off .tar, too

def validate_name(self, name, name_or_dir='name'): (source)

Undocumented

rewrite_template_suffixes: tuple = (source)

Undocumented

url_schemes: list[str] = (source)

Undocumented

Undocumented

app_or_project = (source)

Undocumented

paths_to_remove: list = (source)

Undocumented

verbosity = (source)

Undocumented