views:

415

answers:

2

I've deployed my first GAE application and I am getting "TemplateDoesNotExist" exception at my main page. It feels like my static directory content is not uploaded to GAE. Isn't it possible that I update (appcfg.py update myapp/) all my files including the static ones and run it standalone on myappid.appspot.com ?

by the way here you can see the problem: http://pollbook.appspot.com

PS: my app works perfect locally

+6  A: 

Your templates should not be stored in a directory that you refer to as "static" in app.yaml. Static directories are for literally static files that will be served to end users by the CDN without changing. These files cannot be read by the templating engine. It works locally because the dev_appserver does not precisely emulate the production server.

Put your templates in a different directory like /templates or something. You do not need to refer to this directory in your app.yaml.

Brandon Thomson
Good point, man.
zgoda
A: 

If the templates folder is not in app.yaml then how does it get uploaded to GAE in the first place?