From 99e23398773877da561ce8f4aad32741e0dcb778 Mon Sep 17 00:00:00 2001 From: Craig Anderson Date: Tue, 14 Feb 2017 17:31:23 +0000 Subject: [PATCH 1/2] Correct imports in tutorial --- docs/tutorial.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 56c492d..955a3f0 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -90,7 +90,7 @@ Create ``cookbook/ingredients/schema.py`` and type the following: from graphene_django import DjangoObjectType from graphene_django.filter import DjangoFilterConnectionField - from cookbook.ingredients.models import Category, Ingredient + from ingredients.models import Category, Ingredient # Graphene will automatically map the Category model's fields onto the CategoryNode. @@ -145,10 +145,10 @@ Create the parent project-level ``cookbook/schema.py``: import graphene - import cookbook.ingredients.schema + import ingredients.schema - class Query(cookbook.ingredients.schema.Query, graphene.ObjectType): + class Query(ingredients.schema.Query, graphene.ObjectType): # This class will inherit from multiple Queries # as we begin to add more apps to our project pass From e063ef3cfc4ea2575b72a826a8ef512d62ecf5b6 Mon Sep 17 00:00:00 2001 From: Craig Anderson Date: Tue, 14 Feb 2017 17:37:46 +0000 Subject: [PATCH 2/2] Fix GraphiQL URL which is configured in the tutorial. --- docs/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 955a3f0..e3113a1 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -276,7 +276,7 @@ from the command line. Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C. -Go to `localhost:8000/graphiql `__ and +Go to `localhost:8000/graphql `__ and type your first query! .. code::