error:AttributeError: 'super' object has no attribute 'db_type' when run "python manage.py syncdb" in django -


i working on django project , have 2 databases "mysql " , " neo4j" .i install neo4django package , change setting.py below:

setting.py

databases = {     'default': {         'engine': 'django.db.backends.mysql',          'name': 'mylifetime',                              'user': 'root',         'password': 'mypassword',         'host': '',                               'port': '',     } } neo4j_databases = {     'default' : {         'host':'localhost',         'port':7474,         'endpoint':'/db/data'     } } 

and models have neo4j models:

models.py:

from neo4django.db import models   class user(models.nodemodel):     ...     #my user models ...     .... class post(models.nodemodel):     ...     #my post models     ... 

when run command python manage.py syncdb got error :

$ python ../manage.py syncdb creating tables ... attributeerror: 'super' object has no attribute 'db_type' 

when use mysql models don't see errors , tables create successfully. wrong ? thanks

edit: when write python manage.py syncdb --traceback see below :

creating tables ... traceback (most recent call last):   file "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 222, in run_from_argv     self.execute(*args, **options.__dict__)   file "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 255, in execute     output = self.handle(*args, **options)   file "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 385, in handle     return self.handle_noargs(**options)   file "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py", line 91, in handle_noargs     sql, references = connection.creation.sql_create_model(model, self.style, seen_models)   file "/usr/local/lib/python2.7/dist-packages/django/db/backends/creation.py", line 50, in sql_create_model     col_type = f.db_type(connection=self.connection)   file "/usr/local/lib/python2.7/dist-packages/neo4django-0.1.8-py2.7.egg/neo4django/utils.py", line 303, in __getattr__     return getattr(target, name) attributeerror: 'super' object has no attribute 'db_type' 

use --traceback option manage.py see full stack trace of exception get.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -