Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.74 KB

File metadata and controls

46 lines (31 loc) · 1.74 KB

Django GraphiQL Strawberry Debug Toolbar

Tests Package version

Django Debug Toolbar for GraphiQL IDE and Strawberry GraphQL server.

Graphiql Debug Toolbar

Dependencies

  • Python ≥ 3.7
  • Django ≥ 2.2
  • Strawberry ≥ 0.15.1

Installation

Install the last stable version from PyPI.

pip install django-graphiql-strawberry-debug-toolbar

See the documentation for further guidance on setting Django Debug Toolbar.

Add graphiql_strawberry_debug_toolbar to your INSTALLED_APPS settings:

INSTALLED_APPS = [
    'debug_toolbar',
    'graphiql_strawberry_debug_toolbar',
]

Replace the Django Debug Toolbar middleware with the GraphiQL Debug Toolbar one.

MIDDLEWARE = [
    # 'debug_toolbar.middleware.DebugToolbarMiddleware',
    'graphiql_strawberry_debug_toolbar.middleware.DebugToolbarMiddleware',
]

Credits to @jazzband / django-debug-toolbar and @mongkok, the author of the orignal tool for graphene.