python - django on jython using django-jython -


i appreciate if read poor english

i use :

windows

jython 2.7rc2

jdk-8u45

django 1.8

django-jython 1.7.0b2

i try jython startproject mysite, , succeed

then try jython manage.py runserver 8080 , fail

detail:

in settings.py :

     in databases :                      'engine': 'doj.db.backends.sqlite3'      in installed_apps:                       add  'doj', 

the same https://pythonhosted.org/django-jython/index.html

the results:

raise improperlyconfigured(error_msg)django.core.exceptions.improperlyconfigured:'doj.db.backends.sqlite' isn't vailable 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

so try django.db.backends.sqlite instead of doj.db.backends.sqlite in settings.py @ databases

and unluckily:

raise improperlyconfigured("error loading either pysqlite2
or sqlite3 modules (tried in order): %s" % exc) django.core.exceptions.improperlyconfigured: error loading either pysqlite2 or sqlite3 modules (tried in order): no module named sqlite3

and try "doj.db.backends.postgresql_psycopg2" , failed ,too error was: cannot import name basedatabasewrapper

i have searched , try day still can not solve.

thanks help!!!

jpython has same problems sqlite3 here similar question , answer.

sqlite3 module jython


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -