Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import tornado.wsgi
- settings = {
- "static_path": os.path.join(os.path.dirname(__file__), "t"),
- "xsrf_cookies": False,
- "debug": True,
- ...
- }
- def get_WSGI_app():
- application = tornado.wsgi.WSGIApplication([
- (r"/", HomeHandler),
- ...
- (r"/login", LoginHandler),
- (r"/logout", LogoutHandler),
- ], **settings)
- return application
Add Comment
Please, Sign In to add comment