Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (16 sloc) 632 Bytes
import os
import json
import tornado.database
settings = {
#"xsrf_cookies": True,
"static_path": os.path.join(os.path.dirname(__file__), "static/"),
"AmazonAccessKeyID": "--------------------",
"AmazonSecretAccessKey": "----------------------------------------",
"cookie_secret": "--------------------------------------------",
"login_url": "/login",
"debug": True,
}
conn1 = tornado.database.Connection("127.0.0.1", "test1", "root", "")
conn2 = tornado.database.Connection("127.0.0.1", "test2", "root", "")
conn = tornado.database.Connection("127.0.0.1", "test", "root", "")
ring = [conn1, conn2]