          elif hasattr(view, 'get_template_names'):
              return view.get_template_names()
          elif hasattr(view, 'template_name'):
              return [view.template_name]
          raise ImproperlyConfigured('Returned a template response with no `template_name` attribute set on either the view or response')
  
      def get_exception_template(self, response):
          template_names = [name % {'status_code': response.status_code}
                            for name in self.exception_template_names]
  
 
</s> remove         with an appropraite 'WWW-Authenticate' header.
 </s> add         with an appropriate 'WWW-Authenticate' header. </s> remove         # types might return a non-primative value for the pk otherwise.
 </s> add         # types might return a non-primitive value for the pk otherwise. </s> remove     def initialize_request(self, request, *args, **kargs):
 </s> add     def initialize_request(self, request, *args, **kwargs): </s> remove     don't need to dig into the implemention.
 </s> add     don't need to dig into the implementation. </s> remove             # Get the model field that is refered too.
 </s> add             # Get the model field that is referred too.
        raise ImproperlyConfigured(
            'Returned a template response with no `template_name` attribute set on either the view or response'
        )
          elif hasattr(view, 'get_template_names'):
              return view.get_template_names()
          elif hasattr(view, 'template_name'):
              return [view.template_name]
        raise ImproperlyConfigured(
            'Returned a template response with no `template_name` attribute set on either the view or response'
        )
  
      def get_exception_template(self, response):
          template_names = [name % {'status_code': response.status_code}
                            for name in self.exception_template_names]
  
keep keep keep keep replace keep keep keep keep keep
 Removed unused imports, pep8 fixes, typo fixes 
rest_framework/renderers.py