Tuesday, May 31, 2011

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

On May 31, 4:06 pm, Kann <vearas...@gmail.com> wrote:
> I am just new to programming and not quite familiar with pdb. But I
> assume that this is what you are talking about:
>
> http://docs.python.org/library/pdb.html


Yes, that's it. This and the logging module are tools that are really
worth spending some time learning, as they will save you way more time
in the long run.

Note that there are similar tools for Java, if you ever need to trace
code execution in the Java program.

Also and while we're at it, you may want to at least check the return
code from the os.system code (or replace the call to os.system with
some subprocess function or method that allow you to catch and check
the stderr of the Java process).

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