Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7583977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:48:43+00:00 2026-05-30T18:48:43+00:00

When I introduce sorl-thumbnail into my template, it breaks. Here is the part that

  • 0

When I introduce sorl-thumbnail into my template, it breaks.

Here is the part that works:

{% for product in products %}
    <ul class="thumbnails">
        {% for productImage in product.images.all %}
            ...
        {% endfor %}
...
{% endfor %}

and this is what doesn’t:

{% load thumbnail %}
{% for product in products %}
    <ul class="thumbnails">
        {% for productImage in product.images.all %}
            <li class="span4">
                {% thumbnail productImage.image "160x200" as im %}
                    <img src="{{ im.url }}" alt = "" />
                {% endthumbnail %}
            </li>   
        {% endfor %}
...
{% endfor %}

And this is what happens:

Exception Type: TemplateSyntaxError
Exception Value:    
Caught DatabaseError while rendering: current transaction is aborted, commands ignored until end of transaction block

1   {% load thumbnail %}
2   {% for product in products %}

The second line is marked in red.

Also, if I only use the {% load thumbnail %} tag and leave out the rest, everything is fine (except I don’t get to display those nice thumbnails).

Any ideas on what the problem might be?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:48:45+00:00Added an answer on May 30, 2026 at 6:48 pm

    Probably answering my own question… setting

    THUMBNAIL_DEBUG = True
    

    led to this error:

    Caught DatabaseError while rendering: relation "thumbnail_kvstore" does not exist
    LINE 1: ..._kvstore"."key", "thumbnail_kvstore"."value" FROM "thumbnail...
    

    I had accidentally turned off memcached, AND forgotten to update my db for sorl.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To introduce myself to the entity framework I created a console application that works
I want to introduce some random* behavior into an otherwise static html file. I
I'm trying to introduce dependency injection (DI) as a pattern here at work and
I've got win service, which I want introduce in all my products. So how
please introduce some form maker(page maker) for asp.net. like Iron speed. that enable us
I am trying to introduce a multi-key constraint on a JPA-mapped entity: public class
i've started to introduce myself into REST. I use as REST-framework Restlet. I have
How can I manually introduce an integrity error into my database for the purpose
I am looking to introduce an agile method to my boss so that we
I'd like to introduce a feature in my iPhone App that allows the following:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.