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 like that. T On May 21, 11:24 am, Robert Kluin <[email protected]> wrote: > 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 <[email protected]> wrote: > > 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 print won't work. > > > You probably need to provide a little more information about how your > > environment is set up. > > > T > > > On May 20, 12:17 am, Evert <[email protected]> wrote: > >> Hi, > > >> We are having some problems getting data from the datastore. A simple > >> check for results (an if/else statement) results in an empty page. We > >> think this shouldn't be happening because at least something should be > >> displayed because we used an else statement. > > >> Our code is herehttp://appengine.pastebin.com/c3AKUu8J. It's coming > >> straight from the Datastore tutorial samples, but it could be we are > >> doing something wrong here.. > > >> Thanks in advance, > >> Evert > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Google App Engine" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]. > >> For more options, visit this group > >> athttp://groups.google.com/group/google-appengine?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/google-appengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
