There was an error while loading. Please reload this page.
This is a guide on how to create a new page on the KhanLatest platform:
Create a page template eg. new_page.html
<!-- new_page.html --> <html> <head> <title>A new Page!</title> </head> <body> <h1>You made a new page...</h1> {{ some_value }} </body> </html>
create a page module eg. new_page.py
import request_handler import user_util class ViewNewPage(request_handler.RequestHandler): @user_util.open_access def get(self): some_value = 100 template_values = {'some_value': some_value} self.render_jinja2_template('new_page.html', template_values)
Make changes to main.py
import new_page application = webapp2.WSGIApplication([('/new_page', new_page.ViewNewpage])