From f0012811f8af8b1334b46781861a6dd3777ee392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 3 May 2010 18:21:53 +0200 Subject: First import from portato proj --- index.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 index.py (limited to 'index.py') diff --git a/index.py b/index.py new file mode 100755 index 0000000..b91418d --- /dev/null +++ b/index.py @@ -0,0 +1,26 @@ +#!/usr/bin/python + +import web +import controller + +# +# URL Mappings +# +urls = ( + "/r/(.*)", controller.Redirect, + "/(.*)", controller.Page + ) + +# +# The App +# +app = web.application(urls, globals()) +app.notfound = controller.FourOhFour + +# debug for the moment +web.config.debug = True + +# +# And go! +if __name__ == "__main__": + app.run() -- cgit v1.2.3