In this lesson, you’re going to see how to approach debugging, which is an important part of software development! In all_projects.html
, you’re trying to display everything that you have available for one project that’s inside your database.
You’re missing an image. To add an image, you’re going to have to load the static files with a template tag at the beginning of your file:
{% load static %}
reblark on Nov. 3, 2019
I simply do not understand this:
How is it that the database is named “project” ? Where does that happen? And why is it “....image” instead of “....img”.
Plus my code
<img src="{% static project.image %}" alt="screenshot of project">
does not return the alternate text, but does return the empty image icon.Clearly, I am having trouble with debugging. Except, prior to this, I found four problems in my code and fixed them.