def get(self): self.render("main.html", songs=Song.all_songs())
def get(self): songs = Song.all_songs() self.response.out.write(json.dumps([s.as_dict() for s in songs]))