Django-storages: Does a backend for Google Drive / OneDrive make sense?

Created on 6 Nov 2017  路  9Comments  路  Source: jschneier/django-storages

Hello,

I was thinking about implementing a backend for Google Drive and/or OneDrive. And I was wondering why it doesn't exist yet. Is just lack of hands / interest / time or is there any other technical constraint I am missing?

Sorry if this is not the place to ask this type of questions. Don't hesitate to close the issue, given the case.

feature request

Most helpful comment

@stinky2nine thanks for the link.

I'm not planning to use OneDrive/Google Drive for static files, but for other purposes, like @slrsoft said (user content, Word files to allow online editing...). So, I think I'll try it :-)

All 9 comments

Google Drive and Microsoft OneDrive aren't meant for CDN (content delivery network) even though their storage systems are most likely being replicated in multiple locations for availability. Google Cloud Storage, Amazon CloudFront and a few others are designed for CDN.

And Dropbox? There is a Dropbox backend. What's the difference?

I am not a django-storages maintainer so just giving my two cents here. Dropbox is not CDN, but I can understand why developers might want to upload media and user files to Dropbox in Django. This article is a good read, for not using Dropbox as CDN.

I definitely will not put static files on Google Drive/Microsoft OneDrive/Dropbox. For user upload files, sure, I think there are use cases for using Drive/OneDrive.

For me Google Drive & Onedrive make perfect sense, not as CDN but very useful for other purposes - if you implement this it would be a great addition!

@stinky2nine thanks for the link.

I'm not planning to use OneDrive/Google Drive for static files, but for other purposes, like @slrsoft said (user content, Word files to allow online editing...). So, I think I'll try it :-)

It totally makes sense to have Google Drive/OneDrive in django-storages.
The requirements could be:

  • To be an object storage
  • Allow to list
  • Allow to download/upload
  • Allow to share an URL to this file

We are very opened to pull requests ;)

In the meantime, there is an alternative implementation for Google Drive: http://django-googledrive-storage.readthedocs.io

I'm going to say please go ahead use that already existing implementation!

Was this page helpful?
0 / 5 - 0 ratings