Are you sure that the postgres driver of your jython is installed ?



Le 27 mars 2010 à 01:52, Paul Harouff <pharo...@gmail.com> a écrit :

On Fri, Mar 26, 2010 at 6:26 PM, Karen Tracey <kmtra...@gmail.com> wrote:
On Fri, Mar 26, 2010 at 5:58 PM, Paul Harouff <pharo...@gmail.com> wrote:

I uninstalled Django development trunk and installed Django-1.1.1. Now when I run "jython manage.py runserver" I get "Error: No module named
messages"


I've no idea bout your earlier problem but this one sounds like you are using a settings file created by trunk-level manage.py startproject against 1.1.1 code. If you previously ran startproject using trunk-level code you need to start over and re-run it with the older code you have installed now: an 'uplevel' settings file may contain a number of new things that are not
going to be understood by 'backlevel' Django.


Thank you. That was the problem. The settings.py file has two extra
lines. I was able to get Django-1.1.1 to run and connect to it with a
browser.

BUT, now when I move on to the next step in the tutorial it crashes again.

/CSDB/projects/mysite> jython manage.py syncdb
Traceback (most recent call last):
 File "manage.py", line 11, in <module>
   execute_manager(settings)
File "/CSDB/jython/Lib/site-packages/django/core/management/ __init__.py",
line 362, in execute_manager
   utility.execute()
File "/CSDB/jython/Lib/site-packages/django/core/management/ __init__.py",
line 303, in execute
   self.fetch_command(subcommand).run_from_argv(self.argv)
 File "/CSDB/jython/Lib/site-packages/django/core/management/base.py",
line 195, in run_from_argv
   self.execute(*args, **options.__dict__)
 File "/CSDB/jython/Lib/site-packages/django/core/management/base.py",
line 222, in execute
   output = self.handle(*args, **options)
 File "/CSDB/jython/Lib/site-packages/django/core/management/base.py",
line 222, in execute
   output = self.handle(*args, **options)
 File "/CSDB/jython/Lib/site-packages/django/core/management/base.py",
line 351, in handle
   return self.handle_noargs(**options)
File "/CSDB/jython/Lib/site-packages/django/core/management/ commands/syncdb.py",
line 49, in handle_noargs
   cursor = connection.cursor()
 File "/CSDB/jython/Lib/site-packages/django/db/backends/__init__.py",
line 81, in cursor
   cursor = self._cursor()
File "/CSDB/jython/Lib/site-packages/django_jython-1.1.1-py2.5.egg/ doj/backends/zxjdbc/postgresql/base.py",
line 78, in _cursor
   self.connection = self.new_connection()
File "/CSDB/jython/Lib/site-packages/django_jython-1.1.1-py2.5.egg/ doj/backends/zxjdbc/common.py",
line 39, in new_connection
   connection = zxJDBC.connect(self.jdbc_url(),
zxJDBC.DatabaseError: driver [org.postgresql.Driver] not found


All of my searches say the solution is to use the --verify flag with
jython. But, the --verify flag was removed from jython-2.5, because
that is now the default classpath behavior. So, I have no idea how to
fix this.

Paul

--
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 .


--
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.

Reply via email to