Flask Documentation (1.1.x)
Quickstart. There is also a more detailed Tutorial that shows how to create a small but complete application with Flask. Common patterns are described in the Patterns for Flask section. The rest of the docs Version Dependencies Virtual environments Install Flask Install virtualenv Quickstart A Minimal Application What to do if the Server does not Start Debug Mode Routing Static Files Rendering Templates Accessing in WSGI Middleware Using Flask Extensions Deploying to a Web Server Tutorial Project Layout Application Setup Define and Access the Database Blueprints and Views Templates Static Files Blog Blueprint0 码力 | 428 页 | 895.98 KB | 1 年前3Flask Documentation (1.1.x)
. . . . . . . . . . . . 60 1.8 Application Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 1.9 Debugging Application Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 1.14 The Application Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 1 Quickstart. There is also a more detailed Tutorial that shows how to create a small but complete application with Flask. Common patterns are described in the Patterns for Flask section. The rest of the docs0 码力 | 291 页 | 1.25 MB | 1 年前3Tornado 4.5 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": app = make_app() app.listen(8888) spider Structure of a Tornado web application Templates and UI Authentication and security Running and deploying Web framework tornado.web — RequestHandler and Application classes tornado.template — Flexible in the background Queue example - a concurrent web spider Structure of a Tornado web application The Application object Subclassing RequestHandler Handling request input Overriding RequestHandler methods0 码力 | 333 页 | 322.34 KB | 1 年前3Tornado 5.1 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": app = make_app() app.listen(8888) tornado cost of concurrent connections, Tornado uses a single-threaded event loop. This means that all application code should aim to be asynchronous and non-blocking because only one operation can be active at generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before0 码力 | 243 页 | 895.80 KB | 1 年前3Tornado 6.4 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) async def main(): app = make_app() app.listen(8888) await asyncio.Event() generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before run(main()) 6.1.5 Structure of a Tornado web application A Tornado web application generally consists of one or more RequestHandler subclasses, an Application object which routes incoming requests to handlers0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.4 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) async def main(): app = make_app() app.listen(8888) await asyncio.Event() generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before run(main()) 6.1.5 Structure of a Tornado web application A Tornado web application generally consists of one or more RequestHandler subclasses, an Application object which routes incoming requests to handlers0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.4 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) async def main(): app = make_app() app.listen(8888) await asyncio.Event() generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before run(main()) 6.1.5 Structure of a Tornado web application A Tornado web application generally consists of one or more RequestHandler subclasses, an Application object which routes incoming requests to handlers0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.5 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) async def main(): app = make_app() app.listen(8888) await asyncio.Event() generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before run(main()) 6.1.5 Structure of a Tornado web application A Tornado web application generally consists of one or more RequestHandler subclasses, an Application object which routes incoming requests to handlers0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.1 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": app = make_app() app.listen(8888) tornado cost of concurrent connections, Tornado uses a single-threaded event loop. This means that all application code should aim to be asynchronous and non-blocking because only one operation can be active at generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before0 码力 | 245 页 | 904.24 KB | 1 年前3Tornado 6.0 Documentation
RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": app = make_app() app.listen(8888) tornado cost of concurrent connections, Tornado uses a single-threaded event loop. This means that all application code should aim to be asynchronous and non-blocking because only one operation can be active at generally causes some work to happen in the background before triggering some future action in the application (as opposed to normal synchronous functions, which do every- thing they are going to do before0 码力 | 245 页 | 885.76 KB | 1 年前3
共 516 条
- 1
- 2
- 3
- 4
- 5
- 6
- 52