Multi Token

Multi token for django rest framework, Client devices ( Mobile ) can login with seprate token for each device. So devices can be track sepratly.

Settings File

INSTALLED_APPS = [
  ...
  'tokens'
  ...
  ]
  REST_FRAMEWORK = { 
    'DEFAULT_AUTHENTICATION_CLASSES': 
      ( # 'rest_framework.authentication.TokenAuthentication', 
        'tokens.models.MultiTokenAuthentication', ) 
  }
         

Installation

pip install django-multi-token