Replies: 5 comments
|
Ok, this seems to be a bug! When I copy all my types above my mutation class, I don't get this error. Took me about 5h to find this out... 😱 I added the types manually to the schema like this: But no effect. |
|
django-graphene is trying to import your schema file and is encountering another error along the way. I would recommend doing a |
|
Ok, now I found the issue! I need to import above my mutation the So this is really a bug. |
|
Aaaaaaaaaaaaaaaaad I found the solution: I'm going to add this to the documentation :) |
|
For me, this was occurring when I created a class CreatePersonMutation(DjangoModelFormMutation):
class Meta:
form_class = PersonForm
ok = graphene.Boolean(required=True)I was able to fix it just be defining a class PersonType(DjangoObjectType):
class Meta:
model = Person |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi there!
I try to use the awesome
DjangoModelFormMutationbut when I add the mutation to the schema I always get this error:Could not import 'project.config.schema.schema' for Graphene setting 'SCHEMA'. AttributeError: 'NoneType' object has no attribute '_meta'.Here's my setup:
Any ideas what I might be doing wrong?
Thanks!
Ron
All reactions