wsgi-dev.py
author Tero Marttila <terom@fixme.fi>
Tue, 25 Jan 2011 01:19:40 +0200
changeset 31 cd9ca8068b09
parent 22 809686edcd4c
child 32 47e977c23ba2
permissions -rwxr-xr-x
doc: clean up pmacct.conf
"""
    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/',
            },
    )