Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibilities with django-debug-toolbar 4.4.6 or newer #26

Open
knobix opened this issue Jul 14, 2024 · 0 comments
Open

Incompatibilities with django-debug-toolbar 4.4.6 or newer #26

knobix opened this issue Jul 14, 2024 · 0 comments

Comments

@knobix
Copy link

knobix commented Jul 14, 2024

Hi,

If django-graphiql-debug-toolbar is used with django-debug-toolbar 4.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.

Python version: 3.11.9
Python Packages:

  • django-graphiql-debug-toolbar 0.2.0
  • django-debug-toolbar 4.4.6

The problem described above was reported there: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant