Storage implementation for Django that interacts with Google Drive
Project description
This is a Django Storage implementation that uses Google Drive as backend for storing data.
Quick start
Installation
pip install django-googledrive-storage
Setup
INSTALLED_APPS = (
...,
'django.contrib.staticfiles',
'gdstorage'
)
Set the environment variable GOOGLE_DRIVE_STORAGE_JSON_KEY_FILE_CONTENTS or path file in the settings.py: GOOGLE_DRIVE_STORAGE_JSON_KEY_FILE.
Optional set GOOGLE_DRIVE_STORAGE_MEDIA_ROOT in the settings.py
Usage example
from gdstorage.storage import GoogleDriveStorage
# Define Google Drive Storage
gd_storage = GoogleDriveStorage()
...
class Map(models.Model):
id = models.AutoField( primary_key=True)
map_name = models.CharField(max_length=200)
map_data = models.FileField(upload_to='maps', storage=gd_storage)
Documentation and Installation instructions
Documentation and installation instructions can be found at Read The Docs.
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
Close
Hashes for django-googledrive-storage-1.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd3331fc519d6dbf75b8e42d6e0ba5557e1594c5e629b237c1250bd84c9cddd5 |
|
MD5 | 7ab604fa74e1ff07f22893327ea29347 |
|
BLAKE2b-256 | 0f3d90d6457a0fe8e79ae8e6efeed7f875626cfb912d75cde9c86a9f96c6d47c |