def _is_valid_path(path, urlconf=None):
 try:
  urlresolvers.resolve(path, urlconf)
  return True
 except urlresolvers.Resolver404:
  return False

def _is_valid_path ( path , urlconf = None ) : try : urlresolvers . resolve ( path , urlconf ) return True except urlresolvers . Resolver404 : return False
returns true if the given path resolves against the default url resolver .