Skip to content

Commit

Permalink
Improved cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Sep 30, 2016
1 parent 787ba73 commit f6684ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions examples/cookbook/cookbook/schema.py
Expand Up @@ -3,8 +3,6 @@

from graphene_django.debug import DjangoDebug

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


class Query(cookbook.ingredients.schema.Query, graphene.ObjectType):
debug = graphene.Field(DjangoDebug, name='__debug')
Expand Down
5 changes: 4 additions & 1 deletion examples/cookbook/cookbook/settings.py
Expand Up @@ -55,7 +55,10 @@
]

GRAPHENE = {
'SCHEMA': 'cookbook.schema.schema'
'SCHEMA': 'cookbook.schema.schema',
'MIDDLEWARE': (
'graphene_django.debug.DjangoDebugMiddleware',
)
}

ROOT_URLCONF = 'cookbook.urls'
Expand Down

0 comments on commit f6684ca

Please sign in to comment.