【发布时间】:2009-10-25 11:43:46
【问题描述】:
我正在尝试安装 django-photologue。一切似乎都很好,因为我按照官方指南进行安装和设置。我必须上传一些照片作为示例。但是,在查看照片或画廊详情时,则会出现如下错误:
Caught an exception while rendering: 'Photo' object has no attribute 'get_thumbnail_url'
我试图从文件 photo_detail.html
中删除以下代码{% if object.public_galleries %}
<h2>This photo is found in the following galleries:</h2>
<ol>
{% for gallery in object.public_galleries %}
<li>{%previous_in_gallery object gallery%} <a href="{{ gallery.get_absolute_url }}">{{ gallery.title }}</a> {%next_in_gallery object gallery%}</li>
{% endfor %}
</ol>
{% endif %}
没有更多错误,但图片不显示。如果点击链接仍然会导致正确的照片看到。我认为问题出在:
{{ object.get_display_url }}
它完全不返回任何值。 请帮我解决这个问题。谢谢!
【问题讨论】:
标签: django django-templates photologue