<s> from dropbox . client import DropboxOAuth2Flow <EOL> from django . conf import settings <EOL> from django . core . urlresolvers import reverse <EOL> from dimagi . utils . web import get_url_base <EOL> DROPBOX_CSRF_TOKEN = '<STR_LIT>' <EOL> def get_dropbox_auth_flow ( session ) : <EOL> from . views import DropboxAuthCallback <EOL> redirect_uri = '<STR_LIT>' . format ( <EOL> get_url_base ( ) , <EOL> reverse ( DropboxAuthCallback . slug ) , <EOL> ) <EOL> return DropboxOAuth2Flow ( settings . DROPBOX_KEY , settings . DROPBOX_SECRET , redirect_uri , <EOL> session , DROPBOX_CSRF_TOKEN ) </s>
