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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-googlecloud-storage-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b57072750ad3fe3fd498e1839ea21eff5129c72e539192d2c104819d7b32434 |
|
MD5 | 1a0970479691a96c10349d8be7155a1f |
|
BLAKE2b-256 | b99ecc55a95e3340b4e87a68131ea47b36c0ebbb90f2f81269412d3f8a2ab3e0 |
Hashes for django_googlecloud_storage-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 203057f216a9ad17431ca467a31df67025899752a1417530a56fe7c01ab3db09 |
|
MD5 | 76f4ea4532b09c0ae17b80cdd6e42cc9 |
|
BLAKE2b-256 | 63adaabe7a1a79b7e917710a10fca7d03fbb57465b974efb2642eaf11069b8fa |