author | Tero Marttila <terom@fixme.fi> |
Tue, 02 Nov 2010 05:36:16 +0200 | |
changeset 25 | 9fa9d881fd87 |
parent 22 | 809686edcd4c |
child 32 | 47e977c23ba2 |
permissions | -rwxr-xr-x |
""" Simple test server/environment for WSGI development """ import werkzeug from rrdweb import wsgi import logging if __name__ == '__main__' : logging.basicConfig(format="[%(levelname)5s] %(funcName)25s : %(message)s", level=logging.DEBUG) app = wsgi.WSGIApp( rrdpath = 'rrd/', tplpath = 'etc/templates', imgpath = 'img/', ) # run werkzeug.run_simple('localhost', 8081, app, use_reloader=True, use_debugger=True, static_files = { '/static': 'static/', }, )