def _absolute_url_staticfile(is_secure, name):
 url_path = staticfiles_storage.url(name)
 if urlparse.urlparse(url_path).netloc:
  return url_path
 return _absolute_url(is_secure, url_path)

def _absolute_url_staticfile ( is_secure , name ) : url_path = staticfiles_storage . url ( name ) if urlparse . urlparse ( url_path ) . netloc : return url_path return _absolute_url ( is_secure , url_path )
construct an absolute url to a static resource on the site .