(_request: WSGIRequest)
return HttpResponse("\n".join(lines))
Returns the config that will be used for the upgrade.
Returns the config that will be used for the upgrade.
Returns the config that will be used for the upgrade .
def get_upgrade_config(_request: WSGIRequest) -> HttpResponse:
    """Returns the config that will be used for the upgrade."""
    with open(os.path.join(settings.BASE_DIR, "config/raveberry.yaml")) as f:
        config = f.read()
    lines = config.splitlines()
    lines = [line for line in lines if not line.startswith("#")]
    return HttpResponse("\n".join(lines))
def get_upgrade_config ( _request : WSGIRequest ) -> HttpResponse : with open ( os . path . join ( settings . BASE_DIR , "config/raveberry.yaml" ) ) as f : config = f . read ( ) lines = config . splitlines ( ) lines = [ line for line in lines if not line . startswith ( "#" ) ] return HttpResponse ( "\n" . join ( lines ) )