lshedward
# 别名
STATIC_URL = \'/static/\'

# 配置静态文件,名字必须是STATICFILES_DIRS
STATICFILES_DIRS = [
    os.path.join(BASE_DIR, \'static\'),
]

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/app01/timer.css">
</head>
<body>

<h4>hi {{ data }}</h4>
<script src="/static/jquery-3.3.1.js"></script>
<script src="/static/app01/timer.js"></script>
</body>
</html>

 

分类:

技术点:

相关文章:

  • 2020-05-20
  • 2021-12-08
  • 2021-11-29
  • 2021-10-19
  • 2021-08-13
  • 2018-11-07
  • 2021-08-06
  • 2021-11-18
猜你喜欢
  • 2021-11-29
  • 2021-08-13
  • 2021-08-13
  • 2018-01-10
  • 2021-08-13
  • 2019-08-30
  • 2021-09-08
  • 2021-10-03
相关资源
相似解决方案