django:sorl缩略图的问题
当我在模板中引入sorl缩略图时,它会中断 以下是有效的部分:django:sorl缩略图的问题,django,sorl-thumbnail,Django,Sorl Thumbnail,当我在模板中引入sorl缩略图时,它会中断 以下是有效的部分: {% for product in products %} <ul class="thumbnails"> {% for productImage in product.images.all %} ... {% endfor %} ... {% endfor %} 第二行用红色标记 另外,如果我只使用{%load thumbnail%}标记,而不使用其他标
{% for product in products %}
<ul class="thumbnails">
{% for productImage in product.images.all %}
...
{% endfor %}
...
{% endfor %}
第二行用红色标记
另外,如果我只使用{%load thumbnail%}标记,而不使用其他标记,那么一切都很好(除了我不能显示那些漂亮的缩略图)
有什么问题吗?可能是回答了我自己的问题。。。背景
THUMBNAIL_DEBUG = True
导致此错误的原因:
Caught DatabaseError while rendering: relation "thumbnail_kvstore" does not exist
LINE 1: ..._kvstore"."key", "thumbnail_kvstore"."value" FROM "thumbnail...
我不小心关闭了memcached,忘记了更新我的数据库以获得sorl。哦,我确实做到了。但后来我又回到了先前的修订版,忘了再做一次:)
THUMBNAIL_DEBUG = True
Caught DatabaseError while rendering: relation "thumbnail_kvstore" does not exist
LINE 1: ..._kvstore"."key", "thumbnail_kvstore"."value" FROM "thumbnail...