V
V
val1n0r2020-02-13 00:05:23
Django
val1n0r, 2020-02-13 00:05:23

Why can't djnago see some of the pictures from the same folder?

Good day
, please tell me why django does not see some of the pictures from the folder, if it sees others from the same folder?

Here is the code from settings.py

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')

#STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = [
    os.path.join(BASE_DIR,'static')
]


For example, he sees this
<img src='{% static 'img/sword.png' %}' width='22' height='22' alt=''>


but this is not
<img src='{% static 'img/ad.png' %}' width='24' height='24' alt=''>


Of course {% load static %}, in the header

And by the way, in the console it does not display any information about the picture that I cannot display, although it loads the rest of the folder, even those that are not, though 404, but still
5e44732635f9b703836549.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question