我使用Django的投票:https://github.com/brosner/django-voting/tree/master/voting 而我的帖子后,我在这里重定向:http://www.iana.org/domains/example/#c40POST之后,奇怪的重定向到iana.org如下
<form method="POST" action="/comments/{{ comment.id }}/up/vote/">
{% csrf_token %}
<button type="submit">Thumbs Up!</button>
</form>
创建的投票,我可以看到它在管理员。
没有在我的应用程序中,我有这种类型的重定向。我也不能在django-voting中找到这行代码,它会有这个重定向。这是否发生在其他人身上?如果是这样,你怎么解决这个问题?
我只是想在投票后重定向到同一页面。所以我试图<input type="hidden" name="next" value="{{ event.get_absolute_url }}" />
认为它可能会覆盖。但这似乎并不奏效。建议?
+1是的,如果我们有http://example.com它会显示iana页面。 – kiranvj 2013-04-13 10:55:37