[Answered ]-Django test framework token authentication — is there any way to log everyone out?

1👍

I guess it depends a bit on which auth system you are using. In case you are using rest_framework.authtoken, you could simply clear the Token table:

from rest_framework.authtoken.models import Token
Token.objects.all().delete();

No token, not logged in 😉

Leave a comment