File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 174174STORAGES = {
175175 "default" : {
176176 "BACKEND" : "storages.backends.gcloud.GoogleCloudStorage" ,
177+ "options" : {
178+ "bucket_name" : GS_BUCKET_NAME ,
179+ "querystring_auth" : True , # generate signed URLs
180+ "default_acl" : None , # don't make files public by default
181+ "expiration" : 300 , # seconds
182+ },
177183 },
178184 "staticfiles" : {
179185 "BACKEND" : "storages.backends.gcloud.GoogleCloudStorage" ,
186+ "options" : {
187+ "bucket_name" : GS_BUCKET_NAME ,
188+ # You would normally have your static assets public.
189+ # In this example, we re-use the same bucket with the same ACL settings.
190+ "querystring_auth" : True , # generate signed URLs
191+ "default_acl" : None , # don't make files public by default
192+ "expiration" : 300 , # seconds
193+ },
180194 },
181195}
182196GS_DEFAULT_ACL = "publicRead"
You can’t perform that action at this time.
0 commit comments