Hi,
I’m trying to load images on html while using Django platform.
It looks like this on the html part:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rental Options</title>
{% load static %}
</head>
<body>
<h1>Rental Options:</h1>
<img src="{% static 'images/ski_clipart.jpg' %}" alt="A person jumping in skiis" width="500" height="600">
</body>
</html>
The image name is ski_clipart.jpg and it is saved in the static/img folder inside the app.
Since static can take a long time to load, I waited but it’s still not working after an hour.
Please let me know if you know how to fix this.
Thank you,