新手急求!!!django中加载CSS等静态文件的问题
想在django中加载css和图片,按网上的步骤一步一步来,可以通过http://127.0.0××××××/static/style.css访问到css文件,图片也一样,我觉得前面settings和url中配置应该是没问题的,但是运行的网页就是加载不出来
网页打开F12显示
Failed to load resource: net::ERR_EMPTY_RESPONSE
HTML文件是这样的
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>111</title>
</head>
{% load staticfiles %}
<link rel="stylesheet" href="{% static 'css/style.css' %}" >
<body>
<p id="red">这个段落是红色。</p>
<p id="green">这个段落是绿色。</p>
<div class="h1">
<div class="h1">
<p><img src="{% static 'firefox-gray.jpg' %}" alt="firefox"></p>
<a href="" class="h2">全部</a>
<a href="" class="h1">TabA</a>
<a href="" class="h3">TabB</a>
<a href="" class="h1">TabC</a>
</div>
<div class="header-search"></div>
</div>
<div class="pg-body"></div>
<div class="pg-bottom"></div>
{# <img src="{% static 'images/test.png' %}">#}
</body>
</html>