import requests
mytoken = '4652400bd6c3df8eaa360d26560ab59c81e0a164'
myurl = 'http://localhost:8000/api/user_list'
response = requests.get(myurl, headers={'Authorization': 'Token {}'.format(
    mytoken)})
data = response.json()
How to use TokenAuthentication for API in django-rest-framework