gae-init / gae-init-upload

Fork of gae-init with Google Cloud Storage
http://upload.gae-init.appspot.com
MIT License
36 stars 15 forks source link

Using get_default_gcs_bucket_name to initialize the bucket #5

Closed mdxs closed 10 years ago

mdxs commented 10 years ago

Similar to https://github.com/gae-init/gae-init/pull/97 we can initialize the Config.bucket_name with something from the app_identity (as found in the google.appengine.api).

See https://developers.google.com/appengine/docs/python/googlecloudstorageclient/activate?hl=nl#Using_the_default_Gcs_bucket which also explains that new applications, since GAE Python SDK v1.9.0, receive a default bucket (with a free quota; I believe of 5 GB). For existing apps, the link provides instructions on how to create the Google Cloud Storage (GCS) bucket by hand.

lipis commented 10 years ago

Even though more explanation needed on how to use that one.. but I guess it will come in the future at one point in the docs :)