Django REST framework: 'WSGIRequest' object has no attribute ...
www.py4u.net › discuss › 239149But got error: print request.query_params AttributeError: 'WSGIRequest' object has no attribute 'query_params'. Codes: class CourseDetailView(generics.RetrieveAPIView): queryset = Course.objects.all() serializer_class = CourseSerializer def dispatch(self, request, *args, **kwargs): print request.user print 'CourseDetailView dispatch:', request.META #print request.data """ print 'parsers', request.parsers print request.accepted_renderer print 'authenticators', request.authenticators """ ...