I\'d like to write a Django view which serves out variant content based on what\'s requested. For example, for \"text/xml\", serve XML, for \"text/json\", serve JSON, etc. I
HttpRequest.META, more specifically HttpRequest.META.get('HTTP_ACCEPT') — and not HttpRequest.META.get('CONTENT_TYPE') as mentioned earlier
HttpRequest.META.get('HTTP_ACCEPT')
HttpRequest.META.get('CONTENT_TYPE')