Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 538 Bytes
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext import db
import controller
from models import *
class MainPage(controller.BaseController):
def get(self):
t_args = {
'page_title': 'Untitled',
'page_content': 'Hello, World!'
}
self.render_template('index.html', t_args)
# Initialization Code
application = webapp.WSGIApplication([
('/', MainPage),
],debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()