Parametrize index dir and import it from local_settings