Skip to content

Commit f6684ca

Browse files
committed
Improved cookbook
1 parent 787ba73 commit f6684ca

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/cookbook/cookbook/schema.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
from graphene_django.debug import DjangoDebug
55

6-
# print cookbook.ingredients.schema.Query._meta.graphql_type.get_fields()['allIngredients'].args
7-
86

97
class Query(cookbook.ingredients.schema.Query, graphene.ObjectType):
108
debug = graphene.Field(DjangoDebug, name='__debug')

examples/cookbook/cookbook/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
]
5656

5757
GRAPHENE = {
58-
'SCHEMA': 'cookbook.schema.schema'
58+
'SCHEMA': 'cookbook.schema.schema',
59+
'MIDDLEWARE': (
60+
'graphene_django.debug.DjangoDebugMiddleware',
61+
)
5962
}
6063

6164
ROOT_URLCONF = 'cookbook.urls'

0 commit comments

Comments
 (0)