title: Django: Rest Framework authenticate header
body: <p>Using <a href="http://django-rest-framework.org/api-guide/authentication.html">Django REST</a> API, I'm trying to authenticate my request.</p>
  
  <p>This is what I'm trying to send:</p>
  
  <pre><code>Content-Type: application/json, Authentication: token="6d82549b48a8b079f618ee9c51a6dfb59c7e2196"
  </code></pre>
  
  <p>This is what I get back:</p>
  
  <pre><code>{"detail": "Authentication credentials were not provided."}
  </code></pre>
  
  <p>Could someone give me the correct header?</p>
  
  <p>Thanks</p>
  
  <p>The Header:</p>
  
  <pre><code>Accept: application/json
  Content-Type: application/json
  Authorization: Token 6d82549b48a8b079f618ee9c51a6dfb59c7e2196
  Connection: keep-alive
  Origin: chrome-extension: //rest-console-id
  User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/R3BPK.png" alt="enter image description here"></p>
  
  <p>Settings.py</p>
  
  <pre><code>REST_FRAMEWORK = {
      'DEFAULT_PERMISSION_CLASSES': (
          'rest_framework.authentication.TokenAuthentication',
          'rest_framework.permissions.IsAdminUser',
  
  
      ),
      'PAGINATE_BY': 10
  }
  </code></pre>
  
  <p>view.py</p>
  
  <pre><code>class ProfileList(generics.ListCreateAPIView):
      """
      API endpoint that represents a list of users.
      """
      permission_classes = (permissions.IsAuthenticated,)
      model = Profile
      serializer_class = ProfileSerializer
  
      def pre_save(self, obj):
          obj.owner = self.request.user
  </code></pre>