阅读背景:

表单(或Formset?)来处理Django中的多个表行

来源:互联网 

I'm working on my first Django application. In short, what it needs to do is to display a list of film titles, and allow users to give a rating (out of 10) to each film. I've been able to use the {{ form }} and {{ formset }} syntax in a template to produce a form which lets you rate one film at a time, which corresponds to one row in a MySQL table, but how do I produce a form that iterates over all the movie titles in the database and produces a form that lets you rate lots of them at once? I'm working on my first Django application. In




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: