Thanks for the help!
This is getting really weird, because:
If I modify the code like this (http://appengine.pastebin.com/
gTjzcfNK), i.e. placing a print statement before the actual statement
I would like to see (no results/results) it works! However, the first
print 'just a string' doesn't
Evert,
I suggest you use logging to be sure your code is running as
expected. Also, I would do as Tim suggests and use
self.response.out.write rather than print.
Robert
On Sun, May 23, 2010 at 12:08 PM, Evert mirabilisproj...@gmail.com wrote:
Thanks for the help!
This is getting
Hi
Are you sure anything you print will be returned.
How about putting a print at the top before you do anything.
That way you know if the output of prints are even returned.
Rgds
T
On May 20, 12:17 am, Evert mirabilisproj...@gmail.com wrote:
Hi,
We are having some problems getting data
Try putting exit() after the print statements, to make sure you are
not overwriting them.
--
You received this message because you are subscribed to the Google Groups
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group,
HI
Just had a look at the tutorials
The datastore access tutorial is shown using
self.response.out.write rather than print.
If you have your app.yaml and python script setup as the helloworld
example then print should work (I have never seen exit() required)
But if you are using webapp then
Even better than print or writing to output, use logging:
import logging as log
log.info('this is some handy stuff to know.')
Robert
On Thu, May 20, 2010 at 11:07 AM, Tim Hoffman zutes...@gmail.com wrote:
HI
Just had a look at the tutorials
The datastore access tutorial is shown
Except the OP problem is he is not getting a reponse back at the
browser, so
a log won't help him prove the simplest case is working, other than
logging is working.
I think his setup is probably wrong, ie trying to print inside a
WSGIHandler when he should be using self.response.write
or somthing