Since write_index defaults to settings.CERES_DIR if it's unset, you could default to None here instead.