[Fixed]-Django debug toolbar in Angular.js not working

1👍

It probably didn’t work because ROOT_TAG_EXTRA_ATTRS should be set not directly in settings but within DEBUG_TOOLBAR_CONFIG dictionary:

DEBUG_TOOLBAR_CONFIG = {
    'ROOT_TAG_EXTRA_ATTRS' : 'ng-non-bindable'
}

Update: chances are that with angular sql queries will still be not visible because django-debug-toolbar does not support ajax calls. This question might help – there is an answer referring to a Django app django-admin-panel and an associated Chrome extension that shoud support ajax calls. But the problem is that it looks like this project is not supported and I haven’t been able to make it work with latest versions of Django and django-admin-toolbar yet.

Leave a comment