def get(self): try: content = Content.all() new_list_content = [] out_url = users.create_logout_url("/") for c in content: c.img = Photo.all().filter("content =", c.key()) new_list_content.append(c) path = os.path.join(os.path.dirname(__file__), 'templates/admin.html') self.response.out.write(template.render(path, {"content" : new_list_content, "url" : out_url})) except Exception: self.error(404)