diff options
Diffstat (limited to 'tinybill.py')
| -rw-r--r-- | tinybill.py | 23 |
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 @@ | |||
| 1 | import sqlalchemy | ||
| 2 | from sqlalchemy import * | ||
| 3 | |||
| 4 | # bfg imports | ||
| 5 | from webob import Response | ||
| 6 | from paste.httpserver import serve | ||
| 7 | from repoze.bfg.configuration import Configurator | ||
| 8 | |||
| 9 | # tinybill imports | ||
| 10 | from customer import * | ||
| 11 | import db | ||
| 12 | |||
| 13 | def hello_world(request): | ||
| 14 | return Response('Hello world!') | ||
| 15 | |||
| 16 | if __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') | ||
