1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/python import web import controller urls = ( "/(.*)", "controller.Page") app = web.application(urls, globals()) app.notfound = controller.FourOhFour web.config.debug = True if __name__ == "__main__": app.run()