There's no global switch to turn off the console output. Your Django code is simply Python code running in a process, and if you use the print statement, it will print to the stdout of the process. You will have to conditionalize the print statements if you don't want to see them. Your other option is to change where sys.stdout points, but that will change it for the entire process, which may not be what you want.
--Ned. http://nedbatchelder.com Bob Cowdery wrote: > I didn't say I was using it in production. This is development and I > would prefer not to have streams of stuff coming out on the console. > So how do I turn it off. > > Bob > > On Sun, 2008-10-19 at 11:08 -0700, Daniel Roseman wrote: > >> On Oct 19, 7:05 pm, Bob Cowdery <[EMAIL PROTECTED]> wrote: >> >>> This is probably staring me in the face but I can't figure out how to >>> turn off the HTTP console output on the built-in server. I have an Ajax >>> poll running and this output is slowing things down. >>> >>> Thanks >>> Bob >>> >> Quite simply, you shouldn't be using the built-in server in >> production. That's why it's called the development server. >> -- >> DR. >> > > > > > > > -- Ned Batchelder, http://nedbatchelder.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---