How do I get django-debug-toolbar to work with dajax?

旧时模样 提交于 2019-12-13 02:59:40

问题


It seems that dajax is hi-jacking the ajax requests from django-debug-toolbar

Is there anyway to work around this or a known solution?


回答1:


To fix this issue, set DAJAXICE_XMLHTTPREQUEST_JS_IMPORT = False in your Django project settings.

By default, Dajaxice includes the XmlHttpRequest.js library:

  • dajaxice.core.js template
  • __init__.py

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.



来源:https://stackoverflow.com/questions/28113494/how-do-i-get-django-debug-toolbar-to-work-with-dajax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!