If you don't have DROPBOX_ACCESS_TOKEN you can create one after creating a Dropbox app at Dropbox for Developers. In order to let it work properly, you must set the next settings: DROPBOX_ACCESS_TOKEN = 'xxx' Photo = models.ImageField(upload_to='photos', storage=DROPBOX_STORAGE. If you just want to use it on a single model field, you can simply import it: from django_dropbox_storage.storage import DropboxStorage If you want to use django_dropbox_storage as default storage for all file uploads, you need to adjust DEFAULT_FILE_STORAGE too: DEFAULT_FILE_STORAGE = 'django_dropbox_' Then open the settings.py of your project and include it to your INSTALLED_APPS: INSTALLED_APPS = ( Installingįirst things first: $ pip install django-dropbox-storage If your on a free account 2GB your limit would be when you reach 10GB of space on your dropbox.A Dropbox Storage for your Django apps Whatĭjango-dropbox-storage allows Django apps to use Dropbox as a storage backend for file uploading. UPDATE: For reference you can get up to 8GB of free space through the referral program and you get 256mb per referral. Please let me know when you reach your referral cap. I will keep this post updated with the list of upcoming users links. When you hit your limit, (8 gigs) please remove your link so the next person can get some referral credit. Please post your referral link and keep it updated with how many referrals you have left. It keeps unlimited revisions and is accessible anywhere as well via the web interface. If you are not familiar, Dropbox is software that syncs your files online and across your computers. I thought that it would nice to have a Dropbox referral thread.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |