Skip to content

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

@knobix

Description

@knobix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions