Just to follow up, the issue I started off this thread with, unrelated to the caching / not including a call to main in the script, I did find a solution to. Fairly bizarre.
What the problem appears to be, is that the package that your application lives in must contain a script of the same name when you submit, regardless of the configuration stated in app.yaml. For instance, for the following situation: hello_world/ hello_world/app.yaml hello_world/hello.py hello_world/static/ hello_world/static/image.jpg If this project was then submitted with appconfig, only the static files can be successfully requested, even if app.yaml contains a handler for all other requests to use hello.py. All other requests return a blank page. This layout works fine from the test server, but not from the production servers. renaming the package as follows: hello/ hello/app.yaml hello/hello.py hello/static/ hello/static/image.jpg and then updating the project with appconfig causes everything to work just ducky. No change to app.yaml is required, and the application name does not have to match the directory name. It simply needs to contain a script that matches the name of the package. Anyone else come across this problem, or should I share what I've been smoking? SG On Jan 20, 10:16 am, Rodrigo Moraes <[email protected]> wrote: > On Tue, Jan 20, 2009 at 3:52 PM, Rodrigo Moraes wrote: > > this is a really common issue and should be added to the FAQ if it is > > not there already (sorry, i didn't check). > > uh, an update. it is in the FAQ [1]. see: > > Q: The first time I load my application, it is blank. After that it > works fine. What is wrong? > A: This is due to the way that App Engine handles app caching. To fix > it, simply include this at the bottom of your file: > > if __name__ == "__main__": > > main() > > [1]http://knol.google.com/k/marce/app-engine-community-faqs/vkzeph4si12v/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
