`if kwargs['setting'] in ('INSTALLED_APPS', 'STATICFILES_DIRS')` The later is fixed at initialization time too I think