【发布时间】:2013-01-25 12:39:01
【问题描述】:
我是 python 和 django 的新手,我在将 html 页面的各个字段存储到数据库中时遇到了困难。 例如,我有一个 html 页面,其中包含 5 个字段和一个提交按钮。在提交表单时,我希望 html 表单中的所有值都应该存储在给定数据库的表中。 请帮帮我。
【问题讨论】:
-
你需要使用django表单,教程在docs.djangoproject.com/en/dev/intro/tutorial04