0
내 응용 프로그램에 django에 내장 된 주석을 설정했고 플래그 기능을 사용하고 있습니다. 무기력 잘 작동하지만,이 ' "를 반환 템플릿에 다음과 같은 오류가 나타납니다 링크 취소 :Django는 "cancel"플래그가 잘못된 URL을 반환한다고 말합니다
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 %}
이 어떤 통찰력이 크게 것을