docs: def host_theme_path():
      """
      Returns the directory of the theme associated with the given host.
      """
  
      # Set domain to None, which we'll then query for in the first
      # iteration of HOST_THEMES. We use the current site_id rather
      # than a request object here, as it may differ for admin users.
      domain = None
  
      for (host, theme) in settings.HOST_THEMES:
          if domain is None:
              domain = Site.objects.get(id=current_site_id()).domain
          if host.lower() == domain.lower():
              try:
                  __import__(theme)
                  module = sys.modules[theme]
              except ImportError:
                  pass
              else:
                  return os.path.dirname(os.path.abspath(module.__file__))
      return ""