[web2py] Re: GAE only issue extra status info as text on top of page

2011-02-01 Thread Terry
I had left a print statement in the code that I was using to debug an
issue.  When I removed the print statement, the application ran fine
on GAE.  I do not know if this was the root cause, or if there was
something about the deployment (used GAE SDK tool in both cases)

Can anyone share why (as I do not fully trust that I have found the
issue versus merely seeing coincidence)




On Feb 1, 11:26 am, Terry t.l.perkin...@gmail.com wrote:
 I am complete newbie to web based application design, and new to
 web2py, so apologies if the answer is obvious.  I am doing a simple to
 do list application as a learning exercise, and so far has been the
 right balance between enough complexity to force learning a few things
 without being overwhelming.

 However, I have hit a small item and don't know how to address.  When
 I run the app using the web2py server, all pages render fine.  When I
 run the GAE development environment locally, all pages render fine.
 When I upload to GAE, some of the pages include the following text at
 the start of the page (rest of page renders fine) and some pages
 render the same as they do in the other two environments.

 The rendered page code (when a problem) looks like this:

 Status: 200 OK
 Set-Cookie:  session_id_todo=2001:ceba2b23-a490-44f2-86d0-
 aa1c1c93b8e4; Path=/
 Expires: Tue, 01 Feb 2011 16:05:32 GMT
 Content-Type: text/html; charset=utf-8
 Pragma: no-cache
 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
 check=0

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Frameset//EN

 http://www.w3.org/TR/html4/frameset.dtd;
 ..

 Could someone kindly point me in the right direction?


[web2py] Re: GAE only issue extra status info as text on top of page

2011-02-01 Thread howesc
sounds like you got it right.  i have seen similar behavior on GAE with 
print statements.  they seem to show in the console on dev, but in the 
browser on production.  try using the logging package instead of print 
statements to avoid that problem.

cfh