def try_staticfiles_lookup(path):
 try:
  url = staticfiles_storage.url(path)
 except Exception as err:
  log.warning("staticfiles_storage couldn't find path {0}: {1}".format(path, str(err)))
  url = path
 return url

def try_staticfiles_lookup ( path ) : try : url = staticfiles_storage . url ( path ) except Exception as err : log . warning ( "staticfiles_storage couldn't find path {0}: {1}" . format ( path , str ( err ) ) ) url = path return url
try to lookup a path in staticfiles_storage .