Search code examples
ajaxdjangodjango-debug-toolbardajax

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


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

enter image description here

enter image description here

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


Solution

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

    By default, Dajaxice includes the XmlHttpRequest.js library:

    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.