flex_menu.management.commands.render_menu

flex_menu.management.commands.render_menu#

Management command printing the registered menu tree.

Module Contents#

Classes#

Command

Print the full menu tree, or a single named menu’s subtree.

Data#

API#

logger#

‘getLogger(…)’

class Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]#

Bases: django.core.management.base.BaseCommand

Print the full menu tree, or a single named menu’s subtree.

Initialization

add_arguments(parser)[source]#

Add the optional --name argument selecting a single menu.

handle(*args, **options)[source]#

Print the requested menu’s tree, or the full tree if none is named.