incorrect search in /static/ files for some images

My web application does not search correctly for some images in the static directory

in template:

<img src="/static/{{ inn.inn_img.inn_img_thumb.url }}

output inspector:


but it should be: /static/images/inns_img/preview.jpg.150x100_q85_crop.jpg

PROJECT_PATH = os.path.dirname(__file__)
sys.path.insert(0, PROJECT_PATH)

DEBUG = False



# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True

# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale
USE_L10N = True

# Idiomas a escoger
_ = lambda s: s

    ('es', _('Español')),
    ('en', _('Inglés')),
    os.path.join(PROJECT_PATH, 'locale'),
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/"
MEDIA_ROOT = os.path.join(PROJECT_PATH, 'static')

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "", ""
MEDIA_URL = os.path.join(PROJECT_PATH, 'static')

# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/"
STATIC_ROOT = '/home/heysi/heysiweb/static/'

# URL prefix for static files.
# Example: ""
STATIC_URL = '/static/'

# URL prefix for admin static files -- CSS, JavaScript and images.
# Make sure to use a trailing slash.
# Examples: "", "/static/admin/".
ADMIN_MEDIA_PREFIX = '/static/admin/'

# Additional locations of static files
    # Put strings here, like "/home/html/static" or "C:/www/django/static".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
    os.path.join(PROJECT_PATH, '/static/'),

# List of finder classes that know how to find static files in
# various locations.
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',

internationalization and mark_safe doesn't work either look:


<strong>Tel&eacute;fono:</strong> (53) 41-993113<br />
<strong>Movil:</strong> (+53) 52-816802</p>

Your MEDIA_URL looks wrong -- it should be a URL, and you're adding a file path to it. Normally I'd expect it to be simply "/static" or something like that.

yes, sorry, that was the problem for /static.

but I still can't solve the language and safe mode

<em><a class="book" href="/{{ inn.machine_name }}/reservacion">{% trans "RESERVAR AHORA!" %}</a></em>
                                {{ inn.details|safe }}</p>

What are you expecting that code to do and what is it doing instead?