【发布时间】:2021-04-22 13:59:15
【问题描述】:
当我点击提交按钮时出现 404 错误,我想提交到“new_search”
{% extends 'base.html' %}
{% block content %}
<form action="{ % url 'new_search' %}" method="post">
{% csrf_token %}
<input type="text" name="search" value="search" placeholder="search">
<input type="submit" name="submit">
</form>
{% endblock content %}
页面
【问题讨论】:
-
按 F12 并在网络选项卡中查找它尝试访问的 URL 并修复它
标签: python html django django-templates