def get(self): if verifySecureSession(self.request): # User is logged in template = JINJA_ENV.get_template('app.html') self.response.write(template.render()) else: # User is guest if(self.request.path == '/'): template = JINJA_ENV.get_template('front.html') self.response.write(template.render()) elif(self.request.path == '/signup'): template = JINJA_ENV.get_template('signup.html') self.response.write(template.render()) else: self.error(404) self.response.write('render 404 template here')
def get(self): if verifySecureSession(self.request): # User is logged in template = JINJA_ENV.get_template('app.html') self.response.write(template.render()) else: # User is guest if (self.request.path == '/'): template = JINJA_ENV.get_template('front.html') self.response.write(template.render()) elif (self.request.path == '/signup'): template = JINJA_ENV.get_template('signup.html') self.response.write(template.render()) else: self.error(404) self.response.write('render 404 template here')
def get(self): template = JINJA_ENV.get_template('logindebug.html') self.response.write(template.render())