class MainPage(webapp.RequestHandler): def get(self): template_values = {} path = os.path.join(os.path.dirname(__file__), 'templates/index_loggedout.html') self.response.out.write(template.render(path, template_values))
and updating _URLs as:
_URLS = [ ('/runaround/', MainPage), ('/runaround/register/',RegisterPage), ]
As evident from these code snippets our home page is going to only render the page index_loggedout.html irrespective of use authentication status.
We need to now work on creating the login handler and have some sort of session management.
0 comments:
Post a Comment