+from datetime import datetime
+from functools import wraps
+
from django import http
from django.utils import simplejson as json
from django.utils.functional import Promise
-from datetime import datetime
-from functools import wraps
class ExtendedEncoder(json.JSONEncoder):
kwargs.pop('mimetype', None)
data = json.dumps(data, cls=ExtendedEncoder)
- print data
super(JSONResponse, self).__init__(data, mimetype="application/json", **kwargs)