开发者社区 问答 正文

Django中在模板目录templates中添加search_form.html怎么做呢?

Django

展开
收起
bnbajjyhyjfty 2021-11-17 17:08:28 372 分享 版权
1 条回答
写回答
取消 提交回答
  • <html>
    <head>
    <meta charset="utf-8">
    <title>(runoob.com)</title>
    </head>
    <body>
        <form action="/search/" method="get">
            <input type="text" name="q">
            <input type="submit" value="搜索">
        </form>
    </body>
    </html>
    
    2021-11-17 20:19:24
    赞同 展开评论