Routing in Reactjs App running with Tornado webserver doesn't work
0
I am going to run a Reactjs app by Tornado (Python) webserver. The routing system in Reactjs does not work. For example: https://localhost/ (Works!) https://localhost/login (Error 404!) It seems the error comes from Tornado. The following is the main files: app.py: return tornado.web.Application([ (r"/subscription", SubscriptionHandler), (r"/user/authenticate", AuthenticateHandler), (r"/user/register", RegistrationHandler), (r"/static/js/(.*)", tornado.web.StaticFileHandler, {"path": js_root}), (r"/static/css/(.*)", tornado.web.StaticFileHandler, {"path": css_root}), (r"/static/lib/(.*)", tornado.web.StaticFileHandler, {"path": node_modules}), (r"/(.*)", tornad...