Search code examples
djangouploadstoragemediadropbox

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


Solution

  • 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