I'm having real issues figuring out how to setup Neomodel to work. I have defined my classes in a models.py and I'm importing them but all I ever get is a...
ClassAlreadyDefined: Class models.Album with labels Album already defined: {frozenset({'Album'}): <class 'models.Album'>}
error. Here's what my code looks like for example:
from neomodel import StructuredNode, StringProperty, DateTimeProperty, IntegerProperty, UniqueIdProperty, RelationshipTo, RelationshipFrom
class Album(StructuredNode):
uid = UniqueIdProperty()
band = StringProperty()
name = StringProperty()
url = StringProperty()
band_name = StringProperty()
year = IntegerProperty()
genres = RelationshipTo('Genre', 'TAGGED')
fans = RelationshipFrom('Fan', 'BOUGHTBY')