1👍
At last I found what works:
response = client.get('/api/v1/users/auth/user/',
**{ "HTTP_AUTHORIZATION": f"Token {token}" })
Source:stackexchange.com
1👍
At last I found what works:
response = client.get('/api/v1/users/auth/user/',
**{ "HTTP_AUTHORIZATION": f"Token {token}" })