Skip to main content

update_installed_apps

Clears the internal caches for static file finders, management commands, template directories, and translations when the INSTALLED_APPS setting is modified.

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

Clears internal caches for static files, management commands, template directories, and translations when the INSTALLED_APPS setting is modified.

Parameters

NameTypeDescription
settingstringThe name of the Django setting that was changed, used to trigger cache clearing only when INSTALLED_APPS is updated.
kwargsdictAdditional keyword arguments passed by the setting_changed signal dispatcher.

Returns

TypeDescription
nullNothing is returned; this function performs side effects to reset global caches.