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
| Name | Type | Description |
|---|---|---|
| setting | string | The name of the Django setting that was changed, used to determine if storage re-initialization is necessary. |
| **kwargs | dict | Additional keyword arguments passed by the setting_changed signal dispatcher. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the function performs in-place cache invalidation. |