[Django]-Django REST Framework – XMLRenderer modifying my simple XML response

3👍

@renderer_classes([XMLRenderer]) – is not needed.
Response() not needed.I used HTTPResponse and it went fine.

from django.http import HttpResponse

return HttpResponse(response_cxml,content_type="text/xml")

Leave a comment