TIM*_*MEX 1 python django json
我知道如何使用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? )
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1922 次 |
| 最近记录: |