django-debug-toolbar如何使用dajax? [英] How do I get django-debug-toolbar to work with dajax?
问题描述
似乎 dajax
是从 django-debug-toolbar
有没有办法解决这个或一个已知的解决方案?
Is there anyway to work around this or a known solution?
推荐答案
要解决此问题,请设置您的Django项目设置中的DAJAXICE_XMLHTTPREQUEST_JS_IMPORT = False
To fix this issue, set DAJAXICE_XMLHTTPREQUEST_JS_IMPORT = False
in your Django project settings.
默认情况下,Dajaxice包括 XmlHttpRequest.js 图书馆:
By default, Dajaxice includes the XmlHttpRequest.js library:
- dajaxice.core.js template
- __init__.py
如果禁用包含此第三方JavaScript库,Django调试工具栏可以正确加载面板。我没有注意到使用XmlHttpRequest.js库的Dajaxice有任何问题,我相信只有兼容旧的IE浏览器,尽管我不确定。
If you disable the inclusion of this third party javascript library, the Django Debug Toolbar can load panels properly. I have not noticed any issues with Dajaxice with the XmlHttpRequest.js library excluded- I believe it is only for compatibility with old IE browsers, though I'm not certain.
这篇关于django-debug-toolbar如何使用dajax?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!