I find that flushing stdout sometimes crashes the dev server -- weird.  Anyway, 
if you make a minor mod to any file and save changes it flushes stdout.

But the guys who suggested python logging are right on for doing it the "right 
way"

-----Original Message-----
From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On 
Behalf Of Graham Dumpleton
Sent: Saturday, November 13, 2010 1:28 AM
To: Django users
Subject: Re: Django mod_python under apache

For mod_python the result of using print will only show in Apache
error log when you do an explicit flush of stdout. If using mod_wsgi,
it autoflushes on newline so you don't have this problem.

Graham

On Nov 13, 7:29 am, vivek_12315 <vivekchauras...@gmail.com> wrote:
> I have configured Django with mod_python under apache web server.
>
> I would like to know, where can i see the print statements output for
> debugging which i put in python files in django views.
>
> I dont think print statement appears in Apache logs ...

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

Reply via email to