diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-03 18:21:53 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-03 18:21:53 +0200 |
commit | f0012811f8af8b1334b46781861a6dd3777ee392 (patch) | |
tree | e59c3e5d141ecff244584ba786ce191497a9e311 /index.py | |
download | kosten-f0012811f8af8b1334b46781861a6dd3777ee392.tar.gz kosten-f0012811f8af8b1334b46781861a6dd3777ee392.tar.bz2 kosten-f0012811f8af8b1334b46781861a6dd3777ee392.zip |
First import from portato proj
Diffstat (limited to '')
-rwxr-xr-x | index.py | 26 |
1 files changed, 26 insertions, 0 deletions
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() |