WhenItrytouploadanimageviaDjangoAdmintosaveitonthemediaanduploadittothedropboxaccordingtothesettings: link
MEDIA_URL = '/ media /'
MEDIA_ROOT = os.path.join (BASE_DIR, 'media')
STATIC_URL = '/ static /'
STATIC_ROOT = os.path.join (BASE_DIR, "staticfiles")
DEFAULT_FILE_STORAGE = 'storages.backends.dropbox.DropBoxStorage'
DROPBOX_OAUTH2_TOKEN = 'my_token'
DROPBOX_ROOT_PATH = MEDIA_URL
In the urls.py base:
if settings.DEBUG: urlpatterns + = static (settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)
When I try to do this through a terminal, the dbx.uploads_file () command gives the same error.