On Feb 6, 1:38 am, "quentinsf" <[EMAIL PROTECTED]> wrote:
> I'm developing some code which I need to run undermod_python- the
> 'runserver' option won't work because it's complex stuff and I need to
> handle multiple simultaneous requests, even in the early debugging
> stages.
>
> It would be really nice to see the output of my print statements.  I
> know I could write my own logging stuff or redirect sys.stdout and
> sys.stderr in every view function, but I wondered if there was an
> easier way...?

Under mod_python, sys.stdout is linked to the Apache error log files.
Output will not show immediately though unless you call
sys.stdout.flush().

Graham


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to