【发布时间】:2010-01-07 20:52:46
【问题描述】:
我知道如何使用 JQuery ajax 功能来调用 Django 的“url 视图”。
import simplejson as json
def the_view(request):
fruits = {'color':5, 'type': 22}
jfruit = json.dump(fruits)
return render_to_response( THE JSON OBJECT!!! ...how? )
【问题讨论】: