Posted on May 13, 2013 by orbital
We covered Python this morning, just the basics. You should be able to recognize python code now (it doesn’t have semicolons and depends on indentation to recognize blocks).
Finally we covered Google App Engine, the hardest part of today’s work. Here we did the job of generating HTML programmatically in response to requests from your clicks to “run” the program. The HTML is generated from HTML templates where some values are filled in by the app engine’s python code’s. In particular, you are using python code (e.g., giftbook.py) to specify classes and handlers for those classes. The responses that the handlers generate are HTML webpages (e.g., wishlist.html) that have placeholders for the Jinja2 template language to insert the appropriate values from Python.
We don’t expect you to get it all on the first try, but take a look through the code to see what you can understand and what you don’t. We know it’s difficult to ask questions on what you don’t know — because you don’t know what you don’t know — but try your best. We’d love for you to ask at least 1 question in our Askbot forum so that we can try to answer your questions offline.