You need to route a path to /about/
. From the looks of it, you have to edit the file boilerplate/routes.py
.
(disclaimer: I've never used GAE Boilerplate)
First, set up the route to /about/
by adding this line to the end of the routes.py
file:
_routes.append(RedirectRoute('/about/', handlers.AboutRequestHandler, name='about'))
But you also need a controller that will dictate how the about.html
view is displayed. Add the following code to the boilerplate/handlers.py
file:
class AboutRequestHandler(BaseHandler):
"""
Handler to show the about page
"""
def get(self):
""" Returns a simple HTML form for about."""
return self.render_template('about.html')
If your about.html
file is put in the boilerplate/templates
folder, this should work. I haven't tested this so I can't be sure, but you now have a route and a controller.