Tornado 6.5 Documentation
page in an SEO-friendly manner. RedirectHandler lets you configure redirects directly in your Application routing table. For example, to configure a single static redirect: app = tornado.web.Application([ app.listen(8888) await asyncio.Event().wait() if __name__ == '__main__': asyncio.run(main()) Configure your operating system or process manager to run this program to start the server. Please note that in. If the user is not logged in, they will be redirected to the configured login url. If you configure a login url with a query parameter, Tornado will assume you know what you’re doing and use it as-is0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
page in an SEO-friendly manner. RedirectHandler lets you configure redirects directly in your Application routing table. For example, to configure a single static redirect: app = tornado.web.Application([ listen(8888) await asyncio.Event().wait() if __name__ == '__main__': asyncio.run(main()) Configure your operating system or process manager to run this program to start the server. Please note that serve static files from a more optimized static file server like nginx [http://nginx.net/]. You can configure almost any web server to recognize the version tags used by static_url() and set caching headers0 码力 | 437 页 | 405.14 KB | 2 月前3
共 2 条
- 1
相关搜索词