Seems to me like you're trying to redirect your user to a .html template, which is why your eliminar_tipomaterial view returns None. You should pass a hardcoded url or a name that django can resolve with the reverse() method.