School shuts out entire community to avoid church