error in the pattern when uploading the dropbox via django admin

0

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.

    
asked by anonymous 27.11.2018 / 14:23

0 answers