docs: def get_domain_and_port(self):
          """
          Django's request.get_host() returns the requested host and possibly the
          port number.  Return a tuple of domain, port number.
          Domain will be lowercased
          """
          host = self.request.get_host()
          if ':' in host:
              domain, port = host.split(':')
          else:
              domain = host
              port = self.request.META.get('SERVER_PORT')
          if self.SITE_ALIASES and domain in self.SITE_ALIASES:
              domain = self.SITE_ALIASES[domain]
          return (domain.lower(), port)