feed_exp.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:news 作者: wsdookadr 项目源码 文件源码
def set_up_client():
    # set up client with:
    #
    # set Twisted debug level
    # connect to the db
    global dbconn, dbd, dbpool
    DEBUG_MODE = True
    setDebugging(DEBUG_MODE)
    log.startLogging(sys.stdout)
    # db connection and deferred
    dbconn = txpostgres.Connection()
    dbd = dbconn.connect("dbname=news user=user password=test1 host=127.0.0.1 application_name='news-collect'")
    dbpool = adbapi.ConnectionPool('psycopg2', dbname='news', user='user', password='test1')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号