Skip to navigation
How to set global variable to tornado
24.04.15
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) ...
http://www.tornadoweb.org/en/latest/options.html
Reply
Anonymous
Information Epoch 1732574063
You can always add complexity.
Home
Notebook
Contact us