문제

Django의 코멘트 앱을 내 사이트에 통합하려고하지만 성공하지 못했습니다. Django 댓글

IS 오류가 발생합니다 :

렌더링하는 동안 ViewDoesNotexist를 캡처합니다. 모듈 Frontend.views에서 검색을 시도했습니다.오류 : '모듈'객체는 속성 '검색'에 없습니다.

내 견해에 아무 것도 찾아내는 것이 없습니다.댓글 설치의 뭔가가 발생합니다.실제로 실패한 선은입니다.

<form action="{% comment_form_target %}" method="post">
.

comment_form_target 가 강조 표시됩니다.

오류가 발생한 코드 :

{% load comments %}
{% get_comment_form for article as form %}
<form action="{% comment_form_target %}" method="post">
    {{ form }}
</form>
.

내가 온라인에서 발견 한 것에서, 나는 Python 2.7에 도서관을 놓치거나 원형 수입을하고있는 것처럼 보입니다.

도움이 되었습니까?

해결책

Add a search view in FrontEnd.views.py and see what the problem is.

I'm adding an answer so we can nicely close this ticket.

An error of the form

Tried test in module appname.views. Error was: 'module' object has no attribute 'search'

is generated when django tries to do reverse url lookups and the urls.py file contains a broken view.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top