import json
from django.forms.models import model_to_dict
from django.core.serializers.json import DjangoJSONEncoder
events = [some django model query]
# convert every object into a dictionary
data = map(lambda evt: model_to_dict(evt), events)
return HttpResponse(json.dumps(data, cls=DjangoJSONEncoder),
content_type="application/json")