question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Neomodel's models are not recognized

See original GitHub issue

Not sure whose issue this is, but I just wanted to put it out here because the integration isn’t working. Neomodel is the OGM driver for the Neo4j database, and its node structure types are not being recognized as models. Basically -

lib/python3.6/site-packages/graphene_django/types.py", line 51, in init_subclass_with_meta ).format(cls.name, model) AssertionError: You need to pass a valid Django Model

This happens when I try to pass a neomodel node as

Class Meta:
    model  = myneomodel

Any thoughts?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
reverlandcommented, Jun 13, 2018

I came across the same Exception when I try to inherit from a DjangoObjectType class, and not provide Meta class.

class A(DjangoObjectType):
    class Meta:
        model = model_a

class B(A):
    pass

this way, B will not work, and need a Meta class.

I may check this later if I have time on this.

0reactions
stale[bot]commented, Jul 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

django_neomodel fails to connect to a running database while ...
I know the database and neomodel are ok, because neomodel_install_labels models.py --db bolt://neo4j:password@localhost:7687 works perfectly and ...
Read more >
Getting started — neomodel 4.0.8 documentation
After creating a model in Python, any constraints or indexes need must be applied to Neo4j and neomodel provides a script to automate...
Read more >
Null connection from django_neomodel - Neo4j - 25318
Hi I am doing my best to use Django in the creation of this website to reduce the time taken in the production...
Read more >
neomodel Documentation - Read the Docs
Neomodel uses relationship models to define the properties stored on ... property name should not begin with an underscore (_) character.
Read more >
NEO MODELS NEO46091 1/43 1957 FORD FAIRLANE 500 ...
Find many great new & used options and get the best deals for NEO MODELS ... if you have not received your parcel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found