how to access POST data inside tastypie custom Authentication
问题 I'm trying to write custom Authentication in tastypie. Basically, I want to do the authentication using the post parameters and I don't want to use the django auth at all, so my code looks something like: class MyAuthentication(Authentication): def is_authenticated(self, request, **kwargs): if request.method == 'POST': token = request.POST['token'] key = request.POST['key'] return is_key_valid(token,key) This is more or less the idea. The problem is that I keep getting the following error: