code: def eff_request_host(request):
      
      erhn = req_host = request_host(request)
      if req_host.find(".") == -1 and not IPV4_RE.search(req_host):
          erhn = req_host + ".local"
      return req_host, erhn
docs: Return a tuple (request-host, effective request-host name).
  
      As defined by RFC 2965, except both are lowercased.