django_gcp/storage/settings.py
def _stores_settings(self):
        """Get a complete dict of all stores defined in settings.py (media + static + extras)"""
        all_stores = {
            "media": getattr(django_settings, "GCP_STORAGE_MEDIA", None),
            "static": getattr(django_settings, "GCP_STORAGE_STATIC", None),
            **getattr(django_settings, "GCP_STORAGE_EXTRA_STORES", {}),
        }

        return dict((k, v) for k, v in all_stores.items() if v is not None)
Get a complete dict of all stores defined in settings.py (media + static + extras)
Get a complete dict of all stores defined in settings.py (media + static + extras)
Get a complete dict of all stores defined in settings . py ( media + static + extras )
def _stores_settings(self):
        all_stores = {
            "media": getattr(django_settings, "GCP_STORAGE_MEDIA", None),
            "static": getattr(django_settings, "GCP_STORAGE_STATIC", None),
            **getattr(django_settings, "GCP_STORAGE_EXTRA_STORES", {}),
        }
        return dict((k, v) for k, v in all_stores.items() if v is not None)
def _stores_settings ( self ) : all_stores = { "media" : getattr ( django_settings , "GCP_STORAGE_MEDIA" , None ) , "static" : getattr ( django_settings , "GCP_STORAGE_STATIC" , None ) , ** getattr ( django_settings , "GCP_STORAGE_EXTRA_STORES" , { } ) , } return dict ( ( k , v ) for k , v in all_stores . items ( ) if v is not None )
Get a complete dict of all stores defined in settings.py (media + static + extras)
Get a complete dict of all stores defined in settings . py ( media + static + extras )
"""Get a complete dict of all stores defined in settings.py (media + static + extras)"""
self