aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/web/app.py
blob: 7c26c29d09fa1ac40a575775822e92b7140880c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os.path
import tornado.web


class Application(tornado.web.Application):
    def __init__(self, debug):
        handlers = [
        ]
        settings = dict(
            template_path=os.path.join(os.path.dirname(__file__), "templates"),
            static_path=os.path.join(os.path.dirname(__file__), "static"),
            xsrf_cookies=True,
            cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
            debug=debug,
        )
        tornado.web.Application.__init__(self, handlers, **settings)