summaryrefslogtreecommitdiff
path: root/tinybill.py
diff options
context:
space:
mode:
Diffstat (limited to 'tinybill.py')
-rw-r--r--tinybill.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tinybill.py b/tinybill.py
new file mode 100644
index 0000000..adc7c78
--- /dev/null
+++ b/tinybill.py
@@ -0,0 +1,23 @@
1import sqlalchemy
2from sqlalchemy import *
3
4# bfg imports
5from webob import Response
6from paste.httpserver import serve
7from repoze.bfg.configuration import Configurator
8
9# tinybill imports
10from customer import *
11import db
12
13def hello_world(request):
14 return Response('Hello world!')
15
16if __name__ == '__main__':
17 db.setupdb( )
18 config = Configurator()
19 config.begin()
20 config.load_zcml('configure.zcml')
21 config.end()
22 app = config.make_wsgi_app()
23 serve(app, host='0.0.0.0')