def get(self): items = db.GqlQuery("SELECT * FROM NewsItem ORDER BY date DESC LIMIT 25") context = add_user_to_context({'news':items }) #context = add_user_to_context(context) self.response.out.write( template.render(tmpl('templates/news2.html'), context ))
def get(self): v = Videos.all()[0] context = add_user_to_context({ 'users': v.users, 'searches': v.searches }) self.response.out.write( template.render(tmpl('templates/video.html'), context ))
def get(self): t = Twitter.all()[0] context = add_user_to_context({'keywords': t.keywords }) self.response.out.write( template.render(tmpl('templates/twitter.html'), context ))