[Django]-Django-debug-toolbar breaking on admin while getting sql stats

48👍

sqlparse latest version was released today and it’s not compatible with django-debug-toolbar version 1.4, Django version 1.9

workaround is force pip to install sqlparse==0.1.19

9👍

the latest version of sqlparse is not compatible with django-debug-toolbar==1.4.

Your choices are:

  • upgrade django-debug-toolbar to 1.5
  • force install sqlparse==0.1.19

3👍

@Rex Salisbury
That’s not correct.

You have to install

django-debug-toolbar==1.5
sqlparse==0.2.0

or

django-debug-toolbar==1.4
sqlparse==0.1.19

Tested on Cloud9, with django 1.9.2

0👍

Sorry,but for me, with Django 1.8.11, it only worked with this:

django-debug-toolbar==1.5
sqlparse==0.2.1

Leave a comment