<!DOCTYPE html>
<!--将静态资源放到模板中-->
<!--导入-->
{% load static %}
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    div{
      width: 400px;
      height: 300px;
      float: left;
    }
    img{
      width: 100%;
    }
  </style>
</head>
<body>
<h1>住宅图片</h1>
<div>
  <img src="/static/img/yun.jpg" alt="1" title="{{name}}">
</div>
<div>
  <img src="/static/img/aiyun.jpg" alt="2" title="{{name1}}">
</div>
<div>
  <img src="/static/img/ic.jpg" alt="3" title="{{name2}}">
</div>
</body>
</html>