Django REST Framework: Response is not defined error – Twitter API
I am trying to connect to Twitter API (tweepy) but it does not seem to work my views.py class TwitterAPI(APIView): def get(self, request): consumer_key = 'XXX' consumer_secret = 'XXX' access_token = 'XXX' access_token_secret = 'XXX' auth = tw.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token,…