Same as above, use `if 'HTTP_ACCEPT' in request.META`