I just started working with GraphQL
, Django
and Graphene
.
I was attempting to import GraphQLView
and DjangoObjectType
from graphene_django
but it always says
unresolved reference
I did already installed the needed modules with pip install graphene-django==2.8.2
, and the Virtual environment
is up and running.
#settings.py
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'books',
'graphene_django',
]
I couldn't get graphene_django
to import properly.
What are the possible fixes to this?
To solve the issue:
graphene_django
and you should be good to go.