Skip to main content

Google Cloud Storage file backend for Django based on google-cloud

Project description

django-googlecloud-storage

Google Cloud Storage file backend for Django

Based on an django-google-cloud-storage but now made simpler because it uses the python google-cloud package.

If you run your projects on Google’s appengine and you are using the django framework you might need this file backend since there is no way to upload files, images, etc on appengine. The other solution is using django-storages and apache libcloud but that soon descended into a debugging rabbit hole.

Prerequisites

This version works with the google-cloud package from google. It is listed as a dependency.

Installation

pip install django-googlecloud-storage

Configuration

On your django settings.py file you need to add the following settings:

GOOGLE_CLOUD_STORAGE_PROJECT = ‘<name-of-project>’ GOOGLE_CLOUD_STORAGE_BUCKET = ‘<name-of-bucket>’ DEFAULT_FILE_STORAGE = ‘django.googlecloud.storage.GoogleCloudStorage’ MEDIA_URL = “https://storage.googleapis.com/<name-of-bucket>/”

Credits

In historical order:

Christos Kopanos (@ckopanos) - original work using an older version of the google client libs Richard Caceres (@rchrd2) - packaged the original into python module Suresh V(@sureshvv) - used the new google-cloud package and namespace packages

Changelog

0.0.1 (2016-11-07)

  • Initial version

Project details


Release history Release notifications

This version
History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_googlecloud_storage-0.0.1-py3-none-any.whl (5.2 kB) Copy SHA256 hash SHA256 Wheel py3 Nov 7, 2016
django-googlecloud-storage-0.0.1.tar.gz (9.5 kB) Copy SHA256 hash SHA256 Source None Nov 7, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page