title: Django REST Framework TokenAuthentication to authenticate in Django generally
body: <p>We're using <code>rest_framework.authentication.TokenAuthentication</code> to authenticate API users in Django REST Framework using an access token.</p>
  
  <p>Is there a way to use this same class to authenticate users for Django generally?</p>
  
  <p>I've tried adding it straight in to <code>AUTHENTICATION_BACKENDS</code> but it doesn't work:</p>
  
  <pre><code>AUTHENTICATION_BACKENDS = (
      # Needed to login by username in Django admin, regardless of `allauth`
      "django.contrib.auth.backends.ModelBackend",
  
      # `allauth` specific authentication methods, such as login by e-mail
      "allauth.account.auth_backends.AuthenticationBackend",
  
      'rest_framework.authentication.TokenAuthentication',
  )
  </code></pre>
  
  <p>Is there a quick way to do this or do I need to write a custom authentication backend?</p>