前端表单 将数据送到后端 <form method="get" action="/search/"> { % csrf_token %} <input type="search" placeholder="搜索" required> <button type="submit">搜索</button> </form