M
M
marselabdullin2020-06-12 15:55:35
Django
marselabdullin, 2020-06-12 15:55:35

pythonanywhere django images not showing?

I deployed a django project to pythonanywhere hosting, and it is displayed at the link milleniax.pythonanywhere.com
Styles are found, i.e. statics are connected, but the images are not seen.

The image is displayed at this link: milleniax.pythonanywhere.com/static/Images/stop.png

The same image in the project:
5ee37ae8a57a4451460348.png

This is how I set the image in the template:

<img class="logo" src="{% static 'Images/stop.jpg' %}" alt="">


Setting up statics in pythonanywhere:
5ee37a070be6f513009715.png

And what's the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
marselabdullin, 2020-06-12
@marselabdullin

Specified the wrong extension for the image, sorry

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question