def get(self): template_values = {} contact = Contact() response = contact.get_contact() template_values = {"contact": response} self.render_template("contact.template", template_values)
def load_contact(self, dopurge = False): if dopurge: self.purge_entity(Contact()) contact = Contact() contact.email = "*****@*****.**" contact.twitter = "faviosmom" contact.facebook = "faviosmom" contact.alexa = "Ask Favio's Mom" contact.phone = "212-555-1234" contact.put()