I'm new to PythonAnywhere and fairly new to Python and DJango. I have a sample app which I have managed to publish through PythonAnywhere and it is functional. The issue is that a static image as well as some other images linked to rows in a database table are not showing up.
I've gone through all of the recommended steps to debug issues with static files and is seems like the logo image should be appearing. Here is the HTML for that section of the template.
<a class="navbar-brand" href="{% url 'home' %}">
{% load static %}
<img src="{% static 'images/movie.png' %}" alt="" width="30" height="24"
class="d-inline-block align-text-top" />
Movies
</a>
The file images/movie.png is in the physical path myproject/moviereviews/static/images folder.
The other template where I am seeing not found is with the following html.
<img class="card-img-top" src="{{ movie.image.url }}" alt="Movie">
I've checked and each image file is in the images folder.
Is this a static file issue or is it an issue with images in general? I also noticed that when I to go the Admin section, it is functional, but the CSS is not applied. Also, I did install pillow using pip when the site was setup and did not see any errors, so I do believe that was installed correctly. Maybe there's a way to confirm this??
If anyone has some tips on what I can do to debug this, I'd appreciate it. As I said, I've already triple and quadruple-checked the static files setup, both through the text I used to create the sample application as well as the help documents I found on pythonanywhere.
Thanks in advance for your help! Bob