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

  • SEARCH
  • Home
  • 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 7168465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:47:10+00:00 2026-05-28T14:47:10+00:00

This is HTML code piece that in my template: {%load thumbnail%} <img style=border: 1px

  • 0

This is HTML code piece that in my template:

{%load thumbnail%}
<img style="border: 1px solid #53BCB8; padding: 2px;" src="{%thumbnail 'photodir/photo.jpg' 256x256%}" />

And in my settings.py

MEDIA_URL="http://url.com/static/"

And this is the rendered state of HTML:

<img style="border: 1px solid #53BCB8; padding: 2px;" src="http://url.com/staticphotodir/photo_jpg_256x256_q85.jpg" />

the problem is: in the rendered html, img url does not valid. Trailing slash is missing between “static” and “photodir”. How is that happenning and what is the solution? Can anybody explain?

Note: thumbnail template tag belongs to sorl-thumbnail

  • 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-28T14:47:11+00:00Added an answer on May 28, 2026 at 2:47 pm

    Have a look, I created a test project for you. It works like a charm with:

    Django==1.3.1
    Pillow==1.7.6
    sorl-thumbnail==11.12
    

    I get /media/cache/77/c6/77c60cc55e126abe02cbe5de48693c80.png as the result. So it seems that your MEDIA_ROOT variable contains a wrong value. Please ensure it has a trailing slash.

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

Sidebar

Related Questions

I am trying to convert this piece of html code to javascript so that
I have this piece of HTML code. <div class=tagWrapper> <i style=background-image: url(https://fbcdn-photos-a.akamaihd.net/hphotos-ak-ash4/390945_10150419199065735_543370734_8636909_2105028019_a.jpg);></i> </div> I
I have this piece of code: <li class=selected><a href=/AmIACandidate.html>Am I a Candidate?</a></li> I need
I have this html code that i want to edit with jQuery. Here is
i got this piece of code: <head> <title>width height</title> </head> <body> <table border=1 cellpadding=0
I have this html code that I need to parse <a class=sushi-restaurant href=/greatSushi>Best Sushi
this is the piece of code that I am using in a loop to
I have this piece of code: var categoryDetailId = $(#createEventForm-categoryDetail-idCategory).val(); and this html from
I have a JavaScript widget (a piece of embedded JS and HTML code) that's
I have this HTML piece of code and I want to display:none on the

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.