问题
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