title: How to add TokenAuthentication authentication classes to Django FBV
body: <p>I know how to create token authentication in CBV of Django Rest Framework. See a random example below </p>
  
  <pre><code>class Something(viewsets.ModelViewSet):
      """Handles Creating, reading and updating Patients"""
  
      serializer_class = serializers.SomeSerializer
      queryset = Some_Model.objects.all()
      authentication_classes = (TokenAuthentication,)
      filter_backends = (filters.SearchFilter,)
      permission_classes = (IsAuthenticated,)
  </code></pre>
  
  <p>I want to create a token authentication for my FBV. Is that possible. Below are my views. My whole project is on Django rest Framework. Only the below function renders in a regular django template template. I want to add token authentication to the below function</p>
  
  <pre><code>@api_view(http_method_names=['GET'])
  @authentication_classes((TokenAuthentication,))
  def some_function(request, pk):
      #code below
  </code></pre>