Re: New User - Writing your first Django app part 1 crashed

2010-04-12 Thread Jeremy Dunck
On Sat, Mar 27, 2010 at 10:40 PM, Paul Harouff  wrote:
> On Sat, Mar 27, 2010 at 2:45 AM, Thierry Chich  
> wrote:
>> Are you sure that the postgres driver of your jython is installed ?
>>
>
> Yes. But I don't believe Jython is seeing it.
>
> I might have to switch to python. I was hoping to use jython so the
> application would be easier to port to laptops using a CDROM. The
> documentation said django was 100% compatible with jython.

It should be, but using Django under jython is a minority case; your
bug reports would be a valuable community contribution.

We lean pretty heavily on Oracle-using for continued Oracle support --
jython support would be no different.

In this case, it sounds like an issue specific to jython and its
postgres driver, so you may have better luck asking their user group
for help:
https://lists.sourceforge.net/lists/listinfo/jython-users

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



Re: New User - Writing your first Django app part 1 crashed

2010-03-27 Thread Paul Harouff
On Sat, Mar 27, 2010 at 2:45 AM, Thierry Chich  wrote:
> Are you sure that the postgres driver of your jython is installed ?
>

Yes. But I don't believe Jython is seeing it.

I might have to switch to python. I was hoping to use jython so the
application would be easier to port to laptops using a CDROM. The
documentation said django was 100% compatible with jython.

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.



Re: New User - Writing your first Django app part 1 crashed

2010-03-27 Thread Thierry Chich

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



Le 27 mars 2010 à 01:52, Paul Harouff  a écrit :

On Fri, Mar 26, 2010 at 6:26 PM, Karen Tracey   
wrote:
On Fri, Mar 26, 2010 at 5:58 PM, Paul Harouff   
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 
   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.



Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Karen Tracey
On Fri, Mar 26, 2010 at 8:52 PM, Paul Harouff  wrote:
[snip]

>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.
>
>
Sorry, I don't use Jython, so I've no clue on this one.

Karen

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



Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Paul Harouff
On Fri, Mar 26, 2010 at 6:26 PM, Karen Tracey  wrote:
> On Fri, Mar 26, 2010 at 5:58 PM, Paul Harouff  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 
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.



Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Karen Tracey
On Fri, Mar 26, 2010 at 5:58 PM, Paul Harouff  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.

Karen

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



Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Paul Harouff
On Fri, Mar 26, 2010 at 2:17 PM, Beartenor1  wrote:
> I have a openSUSE linux server.
>
> Created folder /CSDB.
> Dropped copy of Sun jdk6u18 in /CSDB/java/jdk6u18.
> Installed copy of Jython in /CSDB/jython
> Installed easy_install
> Installed distribute
> Installed virtualenv
> Ran virtualenv --relocatable /CSDB/jython
> Dropped copy of Apache tomcat6 in /CSDB/tomcat
> Ran tomcat and verified browser can connect to it
> checkedout a copy of Django development trunk
> Ran jython setup.py install
> Django-1.2_beta_1-py2.5.egg was installed to /CSDB/jython/Lib/site-
> packages/django
> Ran easy_install -U django_jython
> django_jython-1.1.1-py2.5.egg was also installed to /CSDB/jython/Lib/
> site-packages
>
> Created folder /CSDB/projects
> cd /CSDB/projects
> django-admin.py startproject mysite
> cd mysite
> jython manage.py runserver
>
> Validating models...
> Unhandled exception in thread started by 
> Traceback (most recent call last):
>  File "/CSDB/jython/Lib/site-packages/django/core/management/commands/
> runserver.py", lin inner_run
>    self.validate(display_num_errors=True)
>  File "/CSDB/jython/Lib/site-packages/django/core/management/
> base.py", line 250, in va
>    num_errors = get_validation_errors(s, app)
>  File "/CSDB/jython/Lib/site-packages/django/core/management/
> validation.py", line 149,validation_errors
>    for inter_field in f.rel.through._meta.fields:
> AttributeError: type object 'Group_permissions' has no attribute
> '_meta'
>
>

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"

Am I ever going to get through Part 1 of the beginner tutorial?

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.



New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Beartenor1
I have a openSUSE linux server.

Created folder /CSDB.
Dropped copy of Sun jdk6u18 in /CSDB/java/jdk6u18.
Installed copy of Jython in /CSDB/jython
Installed easy_install
Installed distribute
Installed virtualenv
Ran virtualenv --relocatable /CSDB/jython
Dropped copy of Apache tomcat6 in /CSDB/tomcat
Ran tomcat and verified browser can connect to it
checkedout a copy of Django development trunk
Ran jython setup.py install
Django-1.2_beta_1-py2.5.egg was installed to /CSDB/jython/Lib/site-
packages/django
Ran easy_install -U django_jython
django_jython-1.1.1-py2.5.egg was also installed to /CSDB/jython/Lib/
site-packages

Created folder /CSDB/projects
cd /CSDB/projects
django-admin.py startproject mysite
cd mysite
jython manage.py runserver

Validating models...
Unhandled exception in thread started by 
Traceback (most recent call last):
  File "/CSDB/jython/Lib/site-packages/django/core/management/commands/
runserver.py", lin inner_run
self.validate(display_num_errors=True)
  File "/CSDB/jython/Lib/site-packages/django/core/management/
base.py", line 250, in va
num_errors = get_validation_errors(s, app)
  File "/CSDB/jython/Lib/site-packages/django/core/management/
validation.py", line 149,validation_errors
for inter_field in f.rel.through._meta.fields:
AttributeError: type object 'Group_permissions' has no attribute
'_meta'


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