If django-graphiql-debug-toolbar is used with django-debug-toolbar4.4.6 or newer, the following error is emitted:
[...]
File "/usr/local/lib/python3.11/site-packages/graphiql_debug_toolbar/middleware.py", line 7, in <module>
from debug_toolbar.middleware import _HTML_TYPES
ImportError: cannot import name '_HTML_TYPES' from 'debug_toolbar.middleware' (/usr/local/lib/python3.11/site-packages/debug_toolbar/middleware.py)
[...]
This is because _HTML_TYPES has been moved from debug_toolbar.middleware to debug_toolbar.utils in the 4.4.6 release.
Hi,
If
django-graphiql-debug-toolbar
is used withdjango-debug-toolbar
4.4.6 or newer, the following error is emitted:This is because
_HTML_TYPES
has been moved fromdebug_toolbar.middleware
todebug_toolbar.utils
in the 4.4.6 release.Python version: 3.11.9 Python Packages:
django-graphiql-debug-toolbar
0.2.0django-debug-toolbar
4.4.6The problem described above was reported there: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280254