fairdm.management.commands.show_config#

Interrogate the running portal about where a setting came from.

With no arguments, reports every layer fairdm.setup() considered, in application order, each marked found or absent. Given a setting name, reports that setting’s resolved value and the layer that produced it — the value passed through SafeExceptionReporterFilter().cleanse_setting() first, so a secret never reaches stdout.

Module Contents#

Classes#

Command

Report the configuration layers, or where one setting came from.

API#

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

Bases: django.core.management.base.BaseCommand

Report the configuration layers, or where one setting came from.

Initialization

help#

“Report the configuration layers fairdm.setup() composed, or a named setting’s resolved value and the…”

add_arguments(parser: django.core.management.base.CommandParser) → None[source]#

Add the optional setting name argument.

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

Report one setting when a name is given, otherwise every layer.