Trouble with Tornado and JavaScript Libraries

≯℡__Kan透↙ 提交于 2019-12-01 17:48:25
DisplacedAussie

You should read the documentation about static files.

In particular, the standard way is to:

  • Create a 'static' directory in the root of your application

  • Add the following to your application settings:

    "static_path": os.path.join(os.path.dirname(file), "static")

  • Put the protovis-d3.2.js in your static directory

  • Refer to the file /static/protovis-d2.2.js in your HTML
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!