相关疑难解决方法(0)

如何使用django-debug-toolbar for django-tastypie?

django-debug-toolbar需要输出为html,但django-tastypie的默认输出格式是json.

我试过发送,http://localhost/api/v1/resource/?format=html但它说Sorry, not implemented yet. Please append "?format=json" to your URL

即使这个文档列出了html作为有效选项之一,它也说明了它TODO list.
http://django-tastypie.readthedocs.org/en/latest/serialization.html#to-html

如何使用调试工具栏来调试tastypie api调用?
(例如,我想看看为api调用运行了多少个sql查询..等等)

也许我可以从django视图中调用api但是如何?

django debugging tastypie

23
推荐指数
2
解决办法
6824
查看次数

标签 统计

debugging ×1

django ×1

tastypie ×1