You must be a bit patient: let GAE the time to cache your files around
their infrastructure. Makes sense?

On Sep 3, 9:17 am, "shadow.hk" <[EMAIL PROTECTED]> wrote:
> I don't know if any of you experience this.
> Each time after "appcfg.py update my_app", I *always* get a blank page
> in the first load of my page.
> I just feel quite frustrated as I don't know how to solve it.
> I really hope that someone can help me.
>
> In my app.yaml:
> - url: /.*
>   script: home.py
>   login: required
>
> The last few lines in home.py file:
> application = webapp.WSGIApplication([
>     ('/', MainPage),
>     ],debug=True)
>
> def main():
>     logging.getLogger().setLevel(logging.DEBUG)
>     run_wsgi_app(application)
>
> if __name__ == "__main__":
>   main()
>
> And finally the MainPage section in home.py (Note that GROUPS is just
> a python tuple):
> class MainPage(webapp.RequestHandler):
>   def get(self):
>     nickname = users.get_current_user().nickname()
>     if users.is_current_user_admin():
>         nickname += " (ADMIN)"
>     template_values = {
>         'nickname': nickname,
>         'logout_url': users.create_logout_url('/'),
>         'groups': GROUPS,
>         }
>     path = os.path.join(os.path.dirname(__file__), 'template.html')
>     self.response.out.write(template.render(path,
> template_values))
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to