Django Book 翻译
菜单>:
TOC
返回
原文:
will look for any fixture of any fixture type called ``mydata`` . If a fixture directory contained ``mydata.json`` , that fixture would be loaded as a JSON fixture. However, if two fixtures with the same name but different fixture types are discovered (e.g., if ``mydata.json`` and ``mydata.xml`` were found in the same fixture directory), fixture installation will be aborted, and any data installed in the call to ``loaddata`` will be removed from the database.
翻译:
將會尋找任何填補命名為mydata。假如一個填補的目錄夾有一個mydata.json。這個填補將被載入用, JSON的方式。然而,假如兩個填補取一樣的名字,但有不一樣的填補副檔名,如(`mydata.json`` and ``mydata.xml在同一個目錄下被發現),填補的安裝動作將會取消,然後其他的已安裝數據在loaddata呼叫時,將會從數據庫被移除掉。
备注:
译者: