Skip to main content

storages_changed

Clears the cached storage backends and resets the default and static files storage wrappers when relevant Django settings are modified.

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

Resets the internal state of Django storage backends and caches when relevant storage settings are modified.

Parameters

NameTypeDescription
settingstringThe name of the Django setting that was changed, used to determine if storage re-initialization is necessary.
**kwargsdictAdditional keyword arguments passed by the setting_changed signal dispatcher.

Returns

TypeDescription
nullNothing is returned; the function performs in-place cache invalidation.