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
Release files for django-googlecloud-storage 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-googlecloud-storage-0.0.1.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_googlecloud_storage-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.7 kB
Release files / django-googlecloud-storage-0.0.1.tar.gz
| Download URL | django-googlecloud-storage-0.0.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b57072750ad3fe3fd498e1839ea21eff5129c72e539192d2c104819d7b32434
|
|
BLAKE2b-256 checksum How to use checksums |
b99ecc55a95e3340b4e87a68131ea47b36c0ebbb90f2f81269412d3f8a2ab3e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_googlecloud_storage-0.0.1-py3-none-any.whl
| Download URL | django_googlecloud_storage-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
203057f216a9ad17431ca467a31df67025899752a1417530a56fe7c01ab3db09
|
|
BLAKE2b-256 checksum How to use checksums |
63adaabe7a1a79b7e917710a10fca7d03fbb57465b974efb2642eaf11069b8fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |