Dropbox chooser field for django.
- Install the package via
pip
:
pip install django-dropboxchooser-field
- Add
dropboxchooser_field
toINSTALLED_APPS
:
INSTALLED_APPS = (
...
'dropboxchooser_field',
...
)
- Add your Drop-in app key to the
settings.py
file:
DROPBOX_APP_KEY = ''
from django import forms
from dropboxchooser_field.fields import DropboxChooserField
class MyForm(forms.Form):
file_from_dropbox = DropboxChooserField(extensions=['jpg', 'png'])