@csrf_exempt
def tw(request):
if request.method == 'GET':
auth = tweepy.OAuthHandler(consumer_key, consumer_secret, callback_url)
return redirect(auth.get_authorization_url())
<tweepy.auth.OAuthHandler object at 0x7f0de94f2a20>
auth.get_access_token(tw_verifier)