原先写法

{#    <link rel="stylesheet" href="/static/css/reset.css"/>#}

不使用路径写法,方便settings改配置static写法

{% load staticfiles %}
<link rel="stylesheet" href="{% static "css/reset.css" %}"/>
<link rel="stylesheet" href="{% static "css/navigation.css" %}"/>
<link rel="stylesheet" href="{% static "css/register.css" %}"/>

 

{%block%}里如果要继承上述文件可以使用

{{block.super}}

相关文章:

  • 2022-02-16
  • 2021-09-10
  • 2022-02-23
  • 2022-01-17
  • 2021-11-09
  • 2021-06-04
  • 2021-05-30
猜你喜欢
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2021-09-06
  • 2022-01-23
相关资源
相似解决方案