使用Tabletools时,Django无法找到swf文件

时间:2015-03-10 07:31:19

标签: django flash tabletools

GET http://127.0.0.1:8000/swf/copy_csv_xls_pdf.swf 404 (NOT FOUND)

那是错误!这是我的静态文件的结构: enter image description here

在“js”文件夹中我放置了我的Tabletools,“swf”包含sw​​f文件。以下是dataTables.tableTools.js

中设置的摘要
TableTools.DEFAULTS = {
    "sSwfPath":        "../swf/copy_csv_xls_pdf.swf",
    "sRowSelect":      "none",
    "sRowSelector":    "tr",
    "sSelectedClass":  null,
    "fnPreRowSelect":  null,
    "fnRowSelected":   null,
    "fnRowDeselected": null,
    "aButtons":        [ "copy", "csv", "xls", "pdf", "print" ],
    "oTags": {
        "container": "div",
        "button": "a", // We really want to use buttons here, but Firefox and IE ignore the
                         // click on the Flash element in the button (but not mouse[in|out]).
        "liner": "span",
        "collection": {
            "container": "div",
            "button": "a",
            "liner": "span"
        }
    }
};

当我尝试使用swf文件的CDN替换路径时,没有错误但它不起作用。

0 个答案:

没有答案