Issues with feeding data into database when using for loop

喜你入骨 提交于 2019-12-04 15:03:52
Caspar

The "efficient way" to do this is to make sure your models match this data, and then use Model FormSets.

If, for some arcane reason, you don't want to define models to match your data, you can use normal formsets instead.

If you aren't familiar with Django forms, I highly recommend you try to understand those first. This answer by yours truly has a fairly comprehensive walkthrough on django forms.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!