Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Django 中,我想将大量数据插入到我创建的模型中,如下面的代码。
for x in range(1,100) a = person(name ="Smith,Joe", age=25, city="New York) a.save()
我应该把这段代码放在哪里才能插入数据?
您可以使用一些应用程序来生成虚拟夹具以进行测试: