diff options
author | 2011-06-30 15:57:13 +0530 | |
---|---|---|
committer | 2011-06-30 15:57:13 +0530 | |
commit | a0a5dbd8914b48d470d6feb8968e8ec5446c39a2 (patch) | |
tree | 6a9742f1e26e1a02fa9427fb14436e21640ba598 | |
parent | use https instead of http (diff) | |
download | gentoostats-a0a5dbd8914b48d470d6feb8968e8ec5446c39a2.tar.gz gentoostats-a0a5dbd8914b48d470d6feb8968e8ec5446c39a2.tar.bz2 gentoostats-a0a5dbd8914b48d470d6feb8968e8ec5446c39a2.zip |
call app.py from separate wsgi handler
-rw-r--r-- | server/__init__.py | 0 | ||||
-rwxr-xr-x | server/app.py (renamed from server/main.py) | 1 | ||||
-rw-r--r-- | server/config.py | 5 |
3 files changed, 4 insertions, 2 deletions
diff --git a/server/__init__.py b/server/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/server/__init__.py diff --git a/server/main.py b/server/app.py index 9eb74fa..89ade62 100755 --- a/server/main.py +++ b/server/app.py @@ -18,4 +18,3 @@ app.internalerror = config.internalerror if __name__ == "__main__": app.run() - diff --git a/server/config.py b/server/config.py index f4e74cd..ae73fc4 100644 --- a/server/config.py +++ b/server/config.py @@ -1,4 +1,6 @@ +import os +import sys import web db = web.database( @@ -8,7 +10,8 @@ db = web.database( db='gentoostats' ) -render = web.template.render('templates/', base='layout') +rootdir = os.path.abspath(os.path.dirname(__file__)) + '/' +render = web.template.render(rootdir + 'templates/', base='layout') def notfound(): return web.notfound(render.error_404()) |