def get_absolute_url(path):
 if is_absolute_url(path):
  return path
 site = sites.get_current()
 return build_url(path, scheme=site.scheme, domain=site.domain)

def get_absolute_url ( path ) : if is_absolute_url ( path ) : return path site = sites . get_current ( ) return build_url ( path , scheme = site . scheme , domain = site . domain )
generate an absolute url for a resource on the test server .