def start_sharing_twitter(request): #start oauth process to authorize tweeting #on behalf of user connection = OAuthConnection('twitter') connection.start(callback_url=reverse('save_twitter_access_token')) request.session['oauth_token'] = connection.get_token() oauth_url = connection.get_auth_url(login_only=False) return HttpResponseRedirect(oauth_url)