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 中有没有一种方法可以在不使用 html 的情况下从 HTML 中获取数据django forms template。原因是我们是两个不同的开发人员,一个从事前端 ui 设计,另一个是 django 编码器。
django forms template
因此,如果他只是给我 html 和 css 文件,我将无法使用它,除非我在 HTML 中添加表单模板来替换他的代码。
我想知道可以在没有 django 表单的情况下获取“POST”数据。
当然,您可以使用以下方法轻松获取 POST 数据:
def home(request): if request.method == 'POST': data = request.POST['variable']
variable字段名称在哪里。
variable