Skip to content

Package

welcome_wizard

App declaration for welcome_wizard.

WelcomeWizardConfig

Bases: NautobotAppConfig

App configuration for the welcome_wizard app.

Source code in welcome_wizard/__init__.py
class WelcomeWizardConfig(NautobotAppConfig):
    """App configuration for the welcome_wizard app."""

    name = "welcome_wizard"
    verbose_name = "Nautobot Welcome Wizard"
    version = __version__
    author = "Network to Code, LLC"
    description = "Nautobot's Getting Started Wizard."
    base_url = "welcome_wizard"
    required_settings = []
    min_version = "2.0.0"
    max_version = "2.9999"
    default_settings = {
        # Add devicetype-library to Nautobot Git Repositories
        "enable_devicetype-library": True,
        "enable_welcome_banner": True,
    }
    caching_config = {}
    middleware = ["welcome_wizard.middleware.Prerequisites"]
    home_view_name = "plugins:welcome_wizard:dashboard"
    docs_view_name = "plugins:welcome_wizard:docs"

    def ready(self):
        """Callback when this app is loaded."""
        super().ready()

        from nautobot.core.signals import nautobot_database_ready  # pylint: disable=import-outside-toplevel
        from .signals import nautobot_database_ready_callback  # pylint: disable=import-outside-toplevel

        nautobot_database_ready.connect(nautobot_database_ready_callback, sender=self)

ready()

Callback when this app is loaded.

Source code in welcome_wizard/__init__.py
def ready(self):
    """Callback when this app is loaded."""
    super().ready()

    from nautobot.core.signals import nautobot_database_ready  # pylint: disable=import-outside-toplevel
    from .signals import nautobot_database_ready_callback  # pylint: disable=import-outside-toplevel

    nautobot_database_ready.connect(nautobot_database_ready_callback, sender=self)