On May 27, 11:05 am, Milan Andric <[EMAIL PROTECTED]> wrote:
> On May 27, 1:10 am, Jeff Anderson <[EMAIL PROTECTED]> wrote:
>
> > Milan Andric wrote:
> > > Hello,
>
> > > I have a helper-like django method that does a little pdf generation.
> > > For some reason when I run this view on the dev server the os.system()
> > > call just hangs. When I run the cmd by hand it works fine. I'm using
> > > python 2.5 and pretty recent trunk of Django. It's a bit rough around
> > > the edges...
>
> > This is what I'd do to help diagnose/solve the problem:
>
> > 1) make sure that the environment is suitable to running the command
> > (PATH set correctly, correct working directory, perms, etc...)
> > 2) run the command using os.system() in a python interpretor
>
> Worked just fine from the interpreter but I noticed some stuff being
> returned on stdout (same as on cmd line). So I added the --quiet
> option to htmldoc and now it seems fine and returns 0 in the
> interpreter. Maybe the os.system() call within the view didn't make
> django very happy since it was returning junk.
>
Furthermore I just did
import sys
sys.stderr.write(os.system(cmd))
sys.stderr.flush()
to see what the error message from the command is in the production
server log.
--
Milan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---