Skip to main content

static_finders_changed

Clears the internal cache of the static files finder when specific Django settings, such as STATICFILES_DIRS or STATIC_ROOT, are modified.

def static_finders_changed(
setting: string,
**kwargs: dict
) - > null

Clears the internal cache of Django static file finders when relevant settings are modified. This ensures that changes to static file locations are immediately recognized by the application during development or testing.

Parameters

NameTypeDescription
settingstringThe name of the Django setting that was changed, used to determine if a cache reset is necessary.
**kwargsdictAdditional keyword arguments passed by the setting_changed signal dispatcher.

Returns

TypeDescription
nullNothing is returned; this function performs a side effect of clearing a cache.