pools/urls.py
app_name='pools'
pools/views.py
return HttpResponseRedirect(reverse('pools:results', args=(question.id,)))
datail.html
<form action="{% url 'pools:vote' question.id %}" method="post">
pools/urls.py
app_name='pools'
pools/views.py
return HttpResponseRedirect(reverse('pools:results', args=(question.id,)))
datail.html
<form action="{% url 'pools:vote' question.id %}" method="post">
本文标题:Django4
本文链接:https://www.haomeiwen.com/subject/jtuzjttx.html
网友评论