Google Cloud Storage using django-appengine-toolki

2019-09-01 10:34发布

I'm currently using django-appengine-toolkit project on my GAE project. I want to provide a feature in my app to upload pictures and store them in Google Cloud Storage buckets.

I've set up my APPENGINE_TOOLKIT setting like this:

APPENGINE_TOOLKIT = {
  (code over here)
  'BUCKET_NAME': '[my GCS bucket name]',
}

DEFAULT_FILE_STORAGE = 'appengine_toolkit.storage.GoogleCloudStorage'
STATICFILE_STORAGE = 'appengine_toolkit.storage.GoogleCloudStorage'

What to to next? how this works with my models?

I read this tutorial http://dev.pippi.im/2014/02/10/create-a-blog-in-minutes-on-app-engine-with-django/

Thanks!

0条回答
登录 后发表回答