Management Commands

Apply the example Guardrail manifests, which every account may use.

class smarter.apps.guardrail.management.commands.add_example_guardrails.Command(*args, **kwargs)[source]

Bases: SmarterExamplesCommand

Django manage.py add_example_guardrails command.

add_examples(user_profile)[source]

Apply the example Guardrails.

Return type:

list[str]

family: str = 'Guardrail'

The resources’ name, for the command’s output, e.g. "Secret".

help = 'Apply the example Guardrail manifests, in smarter/apps/guardrail/data/guardrails.'