0

我已经在我的应用程序中设置了 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 %}

对此的任何见解将不胜感激。

4

1 回答 1

0

I suspect it might be that you're site settings aren't correct. Check the sites app and see if you can make some changes there to get it working.

于 2012-07-10T02:06:26.940 回答