Hello everyone I met an issue with the Dropbox access token when I generated it on the Dropbox console app and used it in setting.py like this.
MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR / 'Media'
# Store media files in Dropbox
DROPBOX_ACCESS_TOKEN = '<My_token>'
STORAGES = {
"default": {
"BACKEND": "storages.backends.dropbox.DropboxStorage",
"OPTIONS": {
"access_token": DROPBOX_ACCESS_TOKEN,
},
},
"staticfiles": {
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
},
}
DROPBOX_ROOT_PATH = 'Media'
DROPBOX_TIMEOUT = '100'
DROPBOX_WRITE_MODE = 'add'
Then I run the server and it raises me:
Invalid setting 'access_token' for DropboxStorage
Has anyone had the same issue as me?