작동하지 않을 수 있습니다 왜 그것이 작동하지 않을 수 있습니다, 심지어 내가 'db.templatefilters'그것은 너무 일할 수 없다 추가 ... 아무도 도와 줄래? 아래장고 사용자 지정 템플릿 필터는 내가 errror이
:) 감사합니다 내 파일 구조 :
db/
models.py
templatefilters/
__init__.py
run_target.py
templates/
run.html
run_target.py
{% extends "index.html" %}
**{% load run_target %}**
{% block content %}
<div style="margin-left:150px; margin-top:10px">
<a href="/home">Home</a> >> <b>run</b>
</div>
<form name="form" method="post">
<br>
<input type="submit" value="Delete" style="margin-left:149px; width:80px; height:30px">
<table border="1"; style="margin-left:150px; border-collapse:collapse;margin-top:10px"; cellpadding="4" borderColor=black>
{% for run in run_list %}
<tr>
<td>{% dictKeyLookup target_dict run.id %}</td>
</tr>
{% endfor %}
</table>
</form>
{% endblock %}
답장을 보내 주셔서 감사합니다. 폴더 이름 'templatetags'을 바꿀 수 없으므로 다시 한번 감사드립니다. :) – LoveTW
그리고 서버를 다시 시작하는 것을 잊지 마시고 ... 사소한 것처럼 보일 수 있지만 제 문제였습니다. –
서버를 다시 시작하면 문제가 해결되었습니다. –