duck.cli.commands.collectstaticยถ

Module containing collectstatic command class.

Module Contentsยถ

Classesยถ

CollectStaticCommand

APIยถ

class duck.cli.commands.collectstatic.CollectStaticCommand[source]ยถ
classmethod collectstatic(skip_confirmation: bool = False) โ†’ None[source]ยถ
classmethod find_blueprint_static_dirs() โ†’ Generator[Tuple[str, duck.routes.Blueprint], None, None][source]ยถ

Finds and returns static directories from all blueprint base directories.

Returns:

The generator of static directory and blueprint pair.

Return type:

Generator

classmethod get_blueprint_staticfiles(blueprint_static_dirs: Tuple[str, duck.routes.Blueprint])[source]ยถ

Returns the generator to the found staticfiles.

Parameters:

blueprint_static_dirs โ€“ The collection of the static directory and the respective blueprint.

classmethod main(skip_confirmation: bool = False)[source]ยถ
classmethod recursive_getfiles(directory: str) โ†’ Generator[source]ยถ

Returns a generator for all files and subfiles within the directory.

classmethod setup()[source]ยถ