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")
Source:stackexchange.com
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")