django_gcp/storage/settings.py
def _update_settings(self):
        """Fetch settings from django configuration, merge with defaults and cache

        Re-run on receiving ``setting_changed`` signal from django.
        """

        # Start with the default settings
        to_cache = {
            **DEFAULT_GCP_SETTINGS,
            **DEFAULT_GCP_STORAGE_SETTINGS,
        }

        # Add GCP_ settings from settings.py (common root level settings, used by the storage module)
        for setting_key in DEFAULT_GCP_SETTINGS.keys():  # pylint: disable=consider-iterating-dictionary
            try:
                to_cache[setting_key] = getattr(django_settings, f"GCP_{setting_key.upper()}")
            except AttributeError:
                # Not defined in django settings, don't add it to the dict
                pass

        # Add GCP_STORAGE_ settings (storage-specific settings for the current store)
        for setting_key in DEFAULT_GCP_STORAGE_SETTINGS.keys():  # pylint: disable=consider-iterating-dictionary
            try:
                to_cache[setting_key] = self._store_settings[setting_key]
            except KeyError:
                pass

        # Add overrides and place in cache
        self._cache = {
            **to_cache,
            **self._overrides,
        }

        self.check()
Fetch settings from django configuration, merge with defaults and cache

        Re-run on receiving ``setting_changed`` signal from django.
        
Fetch settings from django configuration, merge with defaults and cache
Re-run on receiving ``setting_changed`` signal from django.
Fetch settings from django configuration merge with defaults and cache Re - run on receiving ` ` setting_changed ` ` signal from django .
def _update_settings(self):
        to_cache = {
            **DEFAULT_GCP_SETTINGS,
            **DEFAULT_GCP_STORAGE_SETTINGS,
        }
        for setting_key in DEFAULT_GCP_SETTINGS.keys():  
            try:
                to_cache[setting_key] = getattr(django_settings, f"GCP_{setting_key.upper()}")
            except AttributeError:
                pass
        for setting_key in DEFAULT_GCP_STORAGE_SETTINGS.keys():  
            try:
                to_cache[setting_key] = self._store_settings[setting_key]
            except KeyError:
                pass
        self._cache = {
            **to_cache,
            **self._overrides,
        }
        self.check()
def _update_settings ( self ) : to_cache = { ** DEFAULT_GCP_SETTINGS , ** DEFAULT_GCP_STORAGE_SETTINGS , } for setting_key in DEFAULT_GCP_SETTINGS . keys ( ) : try : to_cache [ setting_key ] = getattr ( django_settings , f"GCP_{setting_key.upper()}" ) except AttributeError : pass for setting_key in DEFAULT_GCP_STORAGE_SETTINGS . keys ( ) : try : to_cache [ setting_key ] = self . _store_settings [ setting_key ] except KeyError : pass self . _cache = { ** to_cache , ** self . _overrides , } self . check ( )
Fetch settings from django configuration, merge with defaults and cache
Re-run on receiving ``setting_changed`` signal from django.
Fetch settings from django configuration merge with defaults and cache Re - run on receiving ` ` setting_changed ` ` signal from django .
"""Fetch settings from django configuration, merge with defaults and cache

        Re-run on receiving ``setting_changed`` signal from django.
        """ # Start with the default settings # Add GCP_ settings from settings.py (common root level settings, used by the storage module) # pylint: disable=consider-iterating-dictionary # Not defined in django settings, don't add it to the dict # Add GCP_STORAGE_ settings (storage-specific settings for the current store) # pylint: disable=consider-iterating-dictionary # Add overrides and place in cache
self