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但是如何?