1.问题
创建Django项目简单写一个网页,文字能显示,图片却无法加载,路径错误,找不到图片。
2.背景
我的项目结构
C:.
├─.idea
│ └─inspectionProfiles
├─app01
│ ├─migrations
│ ├─templates
│ │ ├─app01
│ │ └─static
│ │ ├─css
│ │ ├─img
│ │ ├─js
│ │ └─plugins
│ │ └─bootstrap-3.4.1-dist
│ │ ├─css
│ │ ├─fonts
│ │ └─js
│ └─__pycache__
├─mysite
│ └─__pycache__
└─web
└─migrations
我的图片路径
图片放在了static/img/下
HTML代码
html页面文件路径:app01/templates/app01/page.html
<!DOCTYPE html>
<html>
<head>
<title>Page</title>
</head>
<body&g