Issue 81 in django-jython: Django 1.4.3 Database backend not available

61 views
Skip to first unread message

django...@googlecode.com

unread,
Jan 26, 2013, 3:06:22 PM1/26/13
to django-j...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 81 by suneil.r...@gmail.com: Django 1.4.3 Database backend not
available
http://code.google.com/p/django-jython/issues/detail?id=81

What steps will reproduce the problem?
I have Jython 2.5.3 installed on Ubuntu 12.04 with Django 1.4.3 and
django-jython 1.30 and I'm trying to follow the tutorial on the Django
website. Jython djagno-admin.py startproject projectname works fine. I've
set the database engine to doj.backends.zxjdbc.postgresql but when I try
running jython manage.py syncdb I get an error.

What is the expected output? What do you see instead?
suneilr@suneilr-desktop:~/Documents/Project/FirstBlog$ jython manage.py
syncdb
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)

File "/usr/local/lib/jython/Lib/site-packages/django/core/management/__init__.py",
line 443, in execute_from_command_line
utility.execute()

File "/usr/local/lib/jython/Lib/site-packages/django/core/management/__init__.py",
line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)

File "/usr/local/lib/jython/Lib/site-packages/django/core/management/__init__.py",
line 261, in fetch_command
klass = load_command_class(app_name, subcommand)

File "/usr/local/lib/jython/Lib/site-packages/django/core/management/__init__.py",
line 69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/lib/jython/Lib/site-packages/django/utils/importlib.py",
line 35, in import_module
__import__(name)

File "/usr/local/lib/jython/Lib/site-packages/django/core/management/commands/syncdb.py",
line 8, in <module>
from django.core.management.sql import custom_sql_for_model,
emit_post_sync_signal

File "/usr/local/lib/jython/Lib/site-packages/django/core/management/sql.py",
line 6, in <module>
from django.db import models
File "/usr/local/lib/jython/Lib/site-packages/django/db/__init__.py",
line 40, in <module>
backend = load_backend(connection.settings_dict['ENGINE'])
File "/usr/local/lib/jython/Lib/site-packages/django/db/__init__.py",
line 34, in __getattr__
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "/usr/local/lib/jython/Lib/site-packages/django/db/utils.py", line
92, in __getitem__
backend = load_backend(db['ENGINE'])
File "/usr/local/lib/jython/Lib/site-packages/django/db/utils.py", line
44, in load_backend
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: 'doj.backends.zxjdbc.postgresql'
isn't
an available database backend.
Try using django.db.backends.XXX, where XXX is one of:
'dummy', 'mysql', 'oracle', 'postgresql_psycopg2', 'sqlite3'
Error was: No module named postgresql


What version of the product are you using? On what operating system?
Ubuntu 12.04
Jython 2.5.3
Django 1.4.3
Django-jython 1.3.0
JDBC4 Postgresql Driver, Version 9.2-1002
Please provide any additional information below.


django...@googlecode.com

unread,
Aug 10, 2014, 4:35:30 AM8/10/14
to django-j...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 81 by andr...@st0cker.at: Django 1.4.3 Database backend
not available
http://code.google.com/p/django-jython/issues/detail?id=81

Please try again with the latest version, it still relevant to you. Just
reopen the ticket if still not working.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages