def get(self): template_values = { name: 'anna' } template = JINJA_ENVIRONMENT.get_template('templates/index.html') self.response.write(template.render(template_values))
def post(self): login = self.request.get('email'); password = self.request.get('password'); user = User.query(User.email == login and User.password == password).get(); template_values = { 'user': user } template = JINJA_ENVIRONMENT.get_template('templates/index.html') self.response.write(template.render(template_values))
def get(self): template_values = { 'user': None } template = JINJA_ENVIRONMENT.get_template('templates/index.html') self.response.write(template.render())