Guest User

Untitled

a guest
Oct 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import os
  2. import tornado.wsgi
  3.  
  4. settings = {
  5. "static_path": os.path.join(os.path.dirname(__file__), "t"),
  6. "xsrf_cookies": False,
  7. "debug": True,
  8. ...
  9. }
  10.  
  11. def get_WSGI_app():
  12.  
  13. application = tornado.wsgi.WSGIApplication([
  14. (r"/", HomeHandler),
  15. ...
  16. (r"/login", LoginHandler),
  17. (r"/logout", LogoutHandler),
  18. ], **settings)
  19. return application
Add Comment
Please, Sign In to add comment