tornado tips

1、favicon.ico 报404错误

     解决方案一:使用settings配置static目录

     解决方案二:添加路由信息,(r"/(favicon\.ico)", tornado.web.StaticFileHandler, dict(path=settings['static_path'])),

2、pycurl使用报错

pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (none/other)
卸载,然后
export PYCURL_SSL_LIBRARY=[openssl|gnutls|nss]
,重装

你可能感兴趣的:(tornado tips)