title: Upload and retrieve files from Google Cloud Storage/ Buckets in Python/Django
body: <p>I want to upload and retrieve file (that includes image and csv) for my django application.</p>
  
  <p>My project is currently hosted on Google App Engine Flexible. From my understanding, I need to use Google Cloud Buckets for the process. But I could not find relevant material online for the process. </p>
  
  <p><a href="https://cloud.google.com/appengine/docs/standard/python/googlecloudstorageclient/functions#open" rel="nofollow noreferrer">GoogleAppEngineCloudStorageClient</a> API also provides the feature of writing a file and reading it:</p>
  
  <pre><code>cloudstorage.open(filename, mode='r', content_type=None, options=None, read_buffer_size=storage_api.ReadBuffer.DEFAULT_BUFFER_SIZE, retry_params=None)
  </code></pre>
  
  <p>Please point me to the relevant resources for the same. Since I am new to Django and Google Cloud, I would really appreciate if you could share code snippets with me. </p>
  
  <p>Thanks in advance.</p>