summaryrefslogtreecommitdiff
path: root/index.py
blob: b91418db0c955a28709a4b697aee02bb6471d65d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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()