database - django on jython(cannot import name BaseDatabaseWrapper) -


i have problem buliding django on jython

i have installed django-jython , jython , django

in settings.py dababase engine write : doj.db.backends.sqlite

raiseimproperlyconfigured(error_msg)

django.core.exceptions.improperlyconfigured:

'doj.db.backends.sqlite' isn't available database backend. try using 'django.db.backends.xxx', xxx 1 of: u'base', u'mysql', u'oracle', u'postgresql_psycopg2', u'sqlite3'

error was: cannot import name basedatabasewrapper

it seems in doj.db there no these classes can find in django.db

and i find in site-packages\django_jython-1.7.0b2-py2.7.egg\doj\db\backends\sqlite\base.py

there :

from doj.db.backends import jdbcbasedatabasewrapper basedatabasewrapper

from doj.db.backends import jdbcbasedatabasefeatures basedatabasefeatures

from doj.db.backends import jdbcbasedatabaseoperations basedatabaseoperations

from doj.db.backends import jdbccursorwrapper cursorwrapper

from doj.db.backends import jdbcconnection

maybe problem lies here

thanks help

i got same problem. it's django compatibility issue indeed. django-jython 1.7 works django 1.7.x (see https://pythonhosted.org/django-jython/release-notes.html#b2)


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -