This commit is contained in:
j 2009-07-13 14:32:01 +02:00
commit dd5ebf0ed5
10 changed files with 99 additions and 30 deletions

0
utils/__init__.py Normal file
View file

9
utils/shortcuts.py Normal file
View file

@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
from django.http import HttpResponse
from django.utils import simplejson
def render_to_json_response(dictionary, content_type="text/json"):
return HttpResponse(simplejson.dumps(dictionary), content_type=content_type)