Hi everyone, I am experiencing a funny issue with the jdbc driver when trying to run syncdb.
I've installed jython2.5.1, Django-1.2.1 and django-jython-1.1.1 1. I create a project 'mysite'... 2. change settings.py: DATABASE_ENGINE = 'doj.backends.zxjdbc.postgresql' DATABASE_NAME = 'mysite' # Or path to database file if using sqlite3. DATABASE_USER = 'hugo' # Not used with sqlite3. DATABASE_PASSWORD = 'newuser1' # Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. 3. set my CLASSPATH=/path/to/jdbc/postgresql/jar.file 4. run jython manage.py syncdb The problem is I get the following error: Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "/opt/jython2.5.1/Lib/site-packages/django/core/management/ __init__.py", line 438, in execute_manager utility.execute() File "/opt/jython2.5.1/Lib/site-packages/django/core/management/ __init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/jython2.5.1/Lib/site-packages/django/core/management/ __init__.py", line 257, in fetch_command klass = load_command_class(app_name, subcommand) File "/opt/jython2.5.1/Lib/site-packages/django/core/management/ __init__.py", line 257, in fetch_command klass = load_command_class(app_name, subcommand) File "/opt/jython2.5.1/Lib/site-packages/django/core/management/ __init__.py", line 67, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/opt/jython2.5.1/Lib/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/opt/jython2.5.1/Lib/site-packages/django/core/management/ commands/syncdb.py", line 7, in <module> from django.core.management.sql import custom_sql_for_model, emit_post_sync_signal File "/opt/jython2.5.1/Lib/site-packages/django/core/management/ sql.py", line 5, in <module> from django.contrib.contenttypes import generic File "/opt/jython2.5.1/Lib/site-packages/django/contrib/contenttypes/ generic.py", line 6, in <module> from django.db import connection File "/opt/jython2.5.1/Lib/site-packages/django/db/__init__.py", line 75, in <module> connection = connections[DEFAULT_DB_ALIAS] File "/opt/jython2.5.1/Lib/site-packages/django/db/utils.py", line 92, in __getitem__ conn = backend.DatabaseWrapper(db, alias) File "/opt/jython2.5.1/Lib/site-packages/doj/backends/zxjdbc/ postgresql/base.py", line 70, in __init__ self.ops = DatabaseOperations() TypeError: __init__() takes exactly 2 arguments (1 given) I can't be alone experiencing this issue... and the solution is probably pretty simple... but I can't seem to find anything. Thank you for the help! Hugo -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.