0
我已經在我的應用程序中建立了django的評論,我正在使用標記功能。翹邊工作正常,但「取消」,關於模板顯示返回以下錯誤鏈接:Django評論標記「取消」返回錯誤的網址
could not find http
模板/形式如下:
{% extends "base.html" %}
{% load i18n %}
{% block title %}{% trans "Flag this comment" %}{% endblock %}
{% block content %}
<h3>{% trans "Are you sure you want to flag this comment?" %}</h3>
<br />
<blockquote>{{ comment|linebreaks }}</blockquote>
<form action="." method="post">{% csrf_token %}
{% if next %}<div><input type="hidden" name="next" value="{{ next }}" id="next" /></div>{% endif %}
<p class="submit">
<input type="submit" class="btn btn-danger button-left" name="submit" value="{% trans "Flag" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a>
</p>
</form>
{% endblock %}
任何深入瞭解,這將是很大的