Open
Description
I'm using this alongside django-debug-toolbar 2.2.1 and I can't seem to get any SQL queries to show up. I've followed all the install instructions, and have tried using 3.2.1 instead, nothing seems to work.
I looked into what was going wrong in the code, and if I log here:
class DebugToolbarMiddleware(BaseMiddleware):
def process_view(self, request, view_func, *args):
print(view_func, hasattr(view_func, 'view_class') )
if hasattr(view_func, 'view_class') and\
issubclass(view_func.view_class, GraphQLView):
request._graphql_view = True
I get <function graphql at 0x139768160> False
, so it appears it's not recognising my GraphqQL views. Is there something obvious I've not configured correctly or differently on the graphQL side?
I thought it might be because I'd extended the base from graphene_django.views import GraphQLView
class but I tried using the original and that still didn't seem to work.
I'm on these versions:
graphene==2.1.8
graphene-django==2.15.0
graphql-core==2.3.2
graphql-relay==2.0.1
Metadata
Metadata
Assignees
Labels
No labels