#!/usr/bin/env python
"""
Simple test server/environment for WSGI development
"""
import werkzeug
from rrdweb import wsgi, graph
import logging
if __name__ == '__main__' :
logging.basicConfig(format="[%(levelname)5s] %(funcName)25s : %(message)s", level=logging.DEBUG)
app = wsgi.WSGIApp(
rrdpath = 'var/rrd',
tplpath = 'etc/templates',
imgpath = 'var/img',
rrdgraph = graph.pmacct_data,
)
# run
werkzeug.run_simple('localhost', 8081, app, use_reloader=True, use_debugger=True,
static_files = {
'/static': 'static/',
},
)