How can I setup my django application to connect to mysql when using Jython?
SETTINGS.py
DATABASES = {
'default': {
'ENGINE': ''django.db.backends.mysql', # should this be: com.ziclix.python.sql?
}
}
According to the Django docs and django-jython docs, you can install django-jython, and then use 'doj.backends.zxjdbc.mysql' as database backend.
Also, remember to add the JDBC driver to your classpath:
jython -J-classpath path/to/driver.jar manage.py runserver
or
export CLASSPATH="$CLASSPATH:/path/to/driver.jar"