Tornado 5.1 Documentation
Blog example application for a complete example that uses authentication (and stores user data in a MySQL database). Third party authentication The tornado.auth module implements the authentication and updates in this model. Finally, since all the processes share the same port it is more difficult to monitor them individually. For more sophisticated deployments, it is recommended to start the processes attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") define("memcache_hosts", default="127.0.0.1:11011"0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 6.0 Documentation
Blog example application for a complete example that uses authentication (and stores user data in a MySQL database). Third party authentication The tornado.auth module implements the authentication and updates in this model. Finally, since all the processes share the same port it is more difficult to monitor them individually. For more sophisticated deployments, it is recommended to start the processes attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") define("memcache_hosts", default="127.0.0.1:11011"0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 5.1 Documentation
ee/stable/demos/blog] for a complete example that uses authentication (and stores user data in a MySQL database). Third party authentication The tornado.auth module implements the authentication and updates in this model. Finally, since all the processes share the same port it is more difficult to monitor them individually. For more sophisticated deployments, it is recommended to start the processes attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") define("memcache_hosts", default="127.0.0.1:11011"0 码力 | 359 页 | 347.32 KB | 1 年前3
Tornado 4.5 Documentation
ee/stable/demos/blog] for a complete example that uses authentication (and stores user data in a MySQL database). Third party authentication The tornado.auth module implements the authentication and updates in this model. Finally, since all the processes share the same port it is more difficult to monitor them individually. For more sophisticated deployments, it is recommended to start the processes added to the global option namespace, e.g.: from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") define("memcache_hosts", default="127.0.0.1:11011"0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 6.1 Documentation
updates in this model. Finally, since all the processes share the same port it is more difficult to monitor them individually. For more sophisticated deployments, it is recommended to start the processes attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") define("memcache_hosts", default="127.0.0.1:11011" multiple=True, help="Main user memcache servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=80800 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 4.5 Documentation
Blog example application for a complete example that uses authentication (and stores user data in a MySQL database). Third party authentication The tornado.auth module implements the authentication and updates in this model. Finally, since all the processes share the same port it is more difficult to monitor them individually. For more sophisticated deployments, it is recommended to start the processes added to the global option namespace, e.g.: from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") define("memcache_hosts", default="127.0.0.1:11011"0 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 6.4 Documentation
updates in this model. Finally, since all the processes share the same port it is more difficult to monitor them individually. For more sophisticated deployments, it is recommended to start the processes attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") define("memcache_hosts", default="127.0.0.1:11011" multiple=True, help="Main user memcache servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=80800 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.2 Documentation
updates in this model. Finally, since all the processes share the same port it is more difficult to monitor them individually. For more sophisticated deployments, it is recommended to start the processes attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") define("memcache_hosts", default="127.0.0.1:11011" multiple=True, help="Main user memcache servers") def connect(): db = database.Connection(options.mysql_host) ... (continues on next page) 148 Chapter 6. Documentation Tornado Documentation, Release0 码力 | 260 页 | 1.06 MB | 1 年前3
Tornado 6.4 Documentation
updates in this model. Finally, since all the processes share the same port it is more difficult to monitor them individually. For more sophisticated deployments, it is recommended to start the processes attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") define("memcache_hosts", default="127.0.0.1:11011" multiple=True, help="Main user memcache servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=80800 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
updates in this model. Finally, since all the processes share the same port it is more difficult to monitor them individually. For more sophisticated deployments, it is recommended to start the processes attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") define("memcache_hosts", default="127.0.0.1:11011" multiple=True, help="Main user memcache servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=80800 码力 | 268 页 | 1.09 MB | 1 年前3
共 20 条
- 1
- 2













