Php Django民意测验应用程序可点击单选按钮?

Php Django民意测验应用程序可点击单选按钮?,php,html,django,Php,Html,Django,我最近完成了Django民意测验教程,现在我正在尝试通过detail.html页面上的单选按钮创建可点击的链接 我什么都试过了,但似乎都没用。有人能告诉我正确的方向吗 <h1>{{ question.question_text }}</h1> {% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %} <form acti

我最近完成了Django民意测验教程,现在我正在尝试通过detail.html页面上的单选按钮创建可点击的链接

我什么都试过了,但似乎都没用。有人能告诉我正确的方向吗

<h1>{{ question.question_text }}</h1>

{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}

<form action="{% url 'polls:vote' question.id %}" method="post"> {% csrf_token %} {% for choice in question.choice_set.all %}
    <input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" />
    <label for="choice{{ forloop.counter }}">{{ choice.choice_text }}</label><br />
     <a href="{% url 'choice' %}"/> {% endfor %} <input type="submit" value="Vote" /> </form>
{{question.question_text}
{%if error\u message%}{{{error\u message}{%endif%}
{%csrf\u令牌%}{%用于有问题的选项。选项\u集。所有%}
{{choice.choice_text}}

编辑1:我尝试添加,但不起作用

 <a href="https://www.google.com">Test</a>


为了澄清,我试图让每个选择都成为一个可点击的链接(href)

提供错误消息或简短描述
。不幸的是,这仍然不起作用,我尝试添加google.com“>谷歌提供错误信息或简短描述
。不幸的是,这仍然不起作用,我尝试添加google.com”>谷歌