I'm using djangorestframework with the following code:
class RegistrationView(APIView):
def post(self, request, format=None):
print self.request.META.get('API_KEY')
And it returns None
(other headers such as Content-Type
or User-Agent
are OK).
But this header definitely exists in request (this key is local-db only, so it's ok to paste it here):
Why?