Exemplo n.º 1
0
 def get(self):
     path = os.path.join(os.path.dirname(__file__), '../templates/view.html')
     post_query = Posts.Post().query().order(-Posts.Post.date)
     posts = post_query.fetch()
     template_values = {
         'posts': posts
     }
     self.response.out.write(template.render(path, template_values))