leferreyra
leferreyra

Reputation: 189

How to use Dropbox as Django media files storage?

Is there a clean way of using Dropbox as storage for django media files?. Like you would do with s3boto and AmazonS3 described here: How to set-up a Django project with django-storages and Amazon S3

Thanks

Upvotes: 8

Views: 5642

Answers (1)

iepathos
iepathos

Reputation: 506

django-storages has a dropbox implementation ready to go, just:

pip install dropbox django-storages

and in your settings file:

INSTALLED_APPS += (
    'storages',
)

DEFAULT_FILE_STORAGE = 'storages.backends.dropbox.DropBoxStorage'

From: http://django-storages.readthedocs.io/en/latest/backends/dropbox.html

Upvotes: 6

Related Questions