Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud storage 谷歌云存储&x27;静态';bucketname不可用_Google Cloud Storage - Fatal编程技术网

Google cloud storage 谷歌云存储&x27;静态';bucketname不可用

Google cloud storage 谷歌云存储&x27;静态';bucketname不可用,google-cloud-storage,Google Cloud Storage,我目前正在构建一个web应用程序,以提供以html iFrame表示的数据库片段。为了正确表示HTML元素,我需要将Django应用程序的静态文件(如bootstrap)托管在Google云存储的静态文件存储中。但是,当我尝试创建一个名为“static”的bucket时,GCS会返回以下错误: Sorry, that name is not available. Please try a different one. 不仅如此,它还不允许我访问或修改URI,在我尝试访问时显示“禁止”消息 有人

我目前正在构建一个web应用程序,以提供以html iFrame表示的数据库片段。为了正确表示HTML元素,我需要将Django应用程序的静态文件(如bootstrap)托管在Google云存储的静态文件存储中。但是,当我尝试创建一个名为“static”的bucket时,GCS会返回以下错误:

Sorry, that name is not available. Please try a different one.
不仅如此,它还不允许我访问或修改URI,在我尝试访问时显示“禁止”消息


有人知道如何更改谷歌的默认设置吗?没有与此相关的文档。

似乎具有给定名称的bucket已经由其他人创建。您必须选择一个全局唯一的名称

Bucket名称位于单个Google云存储名称空间中。因此,在整个Google云存储命名空间中,每个bucket名称都必须是唯一的。如果您试图创建一个具有已使用的bucket名称的bucket,Google Cloud Storage将以错误消息响应

使用其他名称或使用默认存储桶。如果您的应用程序是在app Engine 1.9.0发行版之后创建的,那么它应该有一个名为
[您的应用程序id].appspot.com
的默认GCS存储桶。您可以在该bucket中创建静态文件,并模拟目录结构,如下所示

[your-app-id].appspot.com/static/my-file-1