Tuesday, May 31, 2011

Re: python code works in command line but not in django

On May 31, 10:32 am, Lucian Nicolescu <lucia...@gmail.com> wrote:
> I don't think there's any way this could work.

Oh yes ? Why so ?

> From what I can tell
> Kann is trying to invoke the java interpreter ...

Indeed.

> but he does it on
> the server, not on the user's machine

And ?

> - that's why it only works when the two are the same.

Please think twice before posting.

The OP never talked about "code working on it's own machine and not on
the production server", but about "code working from within the python
shell and not from the views". Not quite the same problem.

FWIW, nothing prevents a java interpreter from being launched on the
same machine as the django app (it's even a rather common use case),
and as long as everything is correctly deployed and the env, path and
perms are ok there's no reason it shouldn't work as well on a dev
workstation, staging server or production server.


> So he should try to invoke it somehow else, maybe embed it in a html
> page if it's a Applet or just link to the .jar file directly and
> normally the Java machine will automatically pick it up (if installed
> on the user's machine).

What makes you think the java program is supposed to run on the user
machine exactly ?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment