@@ -0,0 +1,497 @@
+from django.http import HttpResponse%0Afrom rest_framework.renderers import JSONRenderer%0A%0A# Initially taken from%0A# http://www.django-rest-framework.org/tutorial/1-serialization/%0Aclass JSONResponse(HttpResponse):%0A    %22%22%22%0A    An HttpResponse that renders its content into JSON.%0A    %22%22%22%0A    def __init__(self, data, **kwargs):%0A        content = JSONRenderer().render(data)%0A        kwargs%5B'content_type'%5D = 'application/json; charset=utf-8'%0A        super(JSONResponse, self).__init__(content, **kwargs)%0A

Add one place to get JSONResponse from.