GraphQL - Python got stuck in the tutorial

Author: aalvarez89Created May 16, 2019Updated Jun 15, 2026

Hello fellas, I'm a newbie with GraphQL, I decided to follow the Graphene tutorial but I got stuck at the Queries part, where you introduce GraphiQL. I believed I followed everything as it's supposed to be but when I open http://localhost:8000/graphql/ I get this error:

Request Method: GET
http://localhost:8000/graphql/
2.1.4
ImportError
Could not import 'hackernews.schema.schema' for Graphene setting 'SCHEMA'. AttributeError: module 'links.schema' has no attribute 'Query'.
C:\Users\Andrew\Documents\PY_Projects\hackernewsgql\venv\lib\site-packages\graphene_django\settings.py in import_from_string, line 78
C:\Users\Andrew\Documents\PY_Projects\hackernewsgql\venv\Scripts\python.exe
3.7.3
['C:\Users\Andrew\Documents\PY_Projects\hackernewsgql\hackernews', 'C:\Users\Andrew\AppData\Local\Programs\Python\Python37-32\python37.zip', 'C:\Users\Andrew\AppData\Local\Programs\Python\Python37-32\DLLs', 'C:\Users\Andrew\AppData\Local\Programs\Python\Python37-32\lib', 'C:\Users\Andrew\AppData\Local\Programs\Python\Python37-32', 'C:\Users\Andrew\Documents\PY_Projects\hackernewsgql\venv', 'C:\Users\Andrew\Documents\PY_Projects\hackernewsgql\venv\lib\site-packages']

Source: howtographql/howtographql