相关疑难解决方法(0)

如何将csv数据导入django模型

我有一些CSV数据,我想使用示例CSV数据导入django模型:

1;"02-01-101101";"Worm Gear HRF 50";"Ratio 1 : 10";"input shaft, output shaft, direction A, color dark green";
2;"02-01-101102";"Worm Gear HRF 50";"Ratio 1 : 20";"input shaft, output shaft, direction A, color dark green";
3;"02-01-101103";"Worm Gear HRF 50";"Ratio 1 : 30";"input shaft, output shaft, direction A, color dark green";
4;"02-01-101104";"Worm Gear HRF 50";"Ratio 1 : 40";"input shaft, output shaft, direction A, color dark green";
5;"02-01-101105";"Worm Gear HRF 50";"Ratio 1 : 50";"input shaft, output shaft, direction A, color dark green";
Run Code Online (Sandbox Code Playgroud)

我有一些名为Product的django型号.在产品还有像一些领域name,description …

python csv django export django-models

60
推荐指数
9
解决办法
10万
查看次数

标签 统计

csv ×1

django ×1

django-models ×1

export ×1

python ×1