0
의 요청은 '나는 1.3.1
버전을 실행하는 장고 코드를 가지고 있고, 최근에는 1.6.1
를 장고를 업데이트 등 direct_to_template
기능과 일부 settings
같은 오류의 대부분을 삭제하고, 실행할 수 있습니다 대지. 예외 값 : 장고
그러나
그것이 내가Request Method: GET
Request URL: http://localhost:8000/reports/safety/
Django Version: 1.6.1
Exception Type: KeyError
Exception Value:
'request'
Exception Location: /home/user/.virtualenvs/proj/local/lib/python2.7/site-packages/django/template/context.py in __getitem__, line 56
Python Executable: /home/user/.virtualenvs/proj/bin/python
Python Version: 2.7.4
......
........
Error during template rendering
In template /home/user/users/apps/proj/templates/shared/report.html, error at line 41
request
40 <tbody>
41 {% autopaginate object_list 20 %}
42 {% for report in object_list %}
43 {{report}}
44 ........
.........
{% endfor %}
100 </tbody>
그래서 사람이 왜 알려 주시기 바랍니다 수 있습니다 내 매김 기능을 django-pagination(1.0.7)
을 사용하고
템플릿 {% autopaginate object_list 20 %}
태그가 발생하면 일부 페이지에 대해 나는 아래의 오류를 얻고있다 위의 오류가 발생하고이를 지우는 방법은 무엇입니까?