Example #1
0
    def get(self):
        template_values = {
            name: 'anna'
        }

        template = JINJA_ENVIRONMENT.get_template('templates/index.html')
        self.response.write(template.render(template_values))
Example #2
0
    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))
Example #3
0
 def get(self):
     template_values = {
         'user': None
     }
     template = JINJA_ENVIRONMENT.get_template('templates/index.html')
     self.response.write(template.render())