title: Django REST Framework: Response is not defined error
body: <p>I am trying to connect to Twitter API (tweepy) but it does not seem to work</p>
  <p>my views.py</p>
  <pre><code>
  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, access_token_secret)
          tw.API(auth, wait_on_rate_limit=True)
          
          return Response('OK')
  </code></pre>
  <p>urls.py</p>
  <pre><code>urlpatterns = [
      path(
          &quot;auth/twitter/redirect/&quot;,
           views.TwitterAPI.as_view(),
      )
  ]
  
  </code></pre>
  <p>When I try tto access the url it throws an error
  Exception Type: NameError
  Exception Value: name 'Response' is not defined</p>
  <p>When I tried to change the class, not tu use get, it also throws an error like GET is not allowed</p>
  <p>Sorry I really can't get how to connect to the twitter api in rest framwork</p>