I'm trying to build a webapp with Django and using dropbox SDK v2 for Python. I'm stuck at Authentication and getting error that
WSGIRequest' object does not support item assignment
Here is my code:
from dropbox import DropboxOAuth2Flow
from django.shortcuts import redirect
def get_dropbox_auth_flow(web_app_session):
redirect_uri = "https://www.my-dummy-server.com"
APP_KEY = 'my-app-key'
APP_SECRET = 'my-app-secret'
return DropboxOAuth2Flow(
APP_KEY, APP_SECRET, redirect_uri, web_app_session, "dropbox-auth-csrf-token")
def dropbox_auth_start(web_app_session):
authorize_url = get_dropbox_auth_flow(web_app_session).start()
return redirect(authorize_url)
Can anyone please help?