changeset 23 | 50f1b76b0835 |
22:809686edcd4c | 23:50f1b76b0835 |
---|---|
1 #!/usr/bin/env python2.5 |
|
2 |
|
3 """ |
|
4 Simple test server/environment for WSGI development |
|
5 """ |
|
6 |
|
7 from rrdweb import wsgi |
|
8 |
|
9 from wsgiref.handlers import CGIHandler |
|
10 import logging |
|
11 |
|
12 if __name__ == '__main__' : |
|
13 logging.basicConfig(format="%(filename)s:%(lineno)d : %(message)s", level=logging.WARN) |
|
14 |
|
15 app = wsgi.WSGIApp( |
|
16 rrdpath = 'rrd/', |
|
17 tplpath = 'etc/templates', |
|
18 imgpath = 'img/', |
|
19 ) |
|
20 |
|
21 # run |
|
22 CGIHandler().run(app) |
|
23 |